aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Dennis Pham <[email protected]>2020-11-06 13:03:18 -0500
committerGravatar GitHub <[email protected]>2020-11-06 13:03:18 -0500
commitb9b921ccfc884bc11bf17876a868248a3ef143e7 (patch)
treeb7f84a71b487c95fc9885e160dc979127e273117
parentMerge pull request #1266 from zachgates/patch-1 (diff)
parentMerge branch 'master' into code_instructions (diff)
Merge pull request #1271 from spacecraft1013/code_instructions
```py convention in code block instructions
-rw-r--r--bot/exts/info/codeblock/_instructions.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/info/codeblock/_instructions.py b/bot/exts/info/codeblock/_instructions.py
index 508f157fb..dadb5e1ef 100644
--- a/bot/exts/info/codeblock/_instructions.py
+++ b/bot/exts/info/codeblock/_instructions.py
@@ -71,7 +71,7 @@ def _get_no_ticks_message(content: str) -> Optional[str]:
log.trace("Creating instructions for a missing code block.")
if _parsing.is_python_code(content):
- example_blocks = _get_example("python")
+ example_blocks = _get_example("py")
return (
"It looks like you're trying to paste code into this channel.\n\n"
"Discord has support for Markdown, which allows you to post code with full "
@@ -133,7 +133,7 @@ def _get_no_lang_message(content: str) -> Optional[str]:
log.trace("Creating instructions for a missing language.")
if _parsing.is_python_code(content):
- example_blocks = _get_example("python")
+ example_blocks = _get_example("py")
# Note that _get_bad_ticks_message expects the first line to have two newlines.
return (