Skip to content

Commit

Permalink
Update execpy.py: support syntax highlight of discord
Browse files Browse the repository at this point in the history
  • Loading branch information
pgDora56 authored Aug 26, 2024
1 parent d594985 commit 093d31a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion execpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ async def execution(self, message):
if len(lines) <= 1:
lines.append("")

if lines[0].startswith("py") and lines[1] == "```":
if lines[0].startswith("py") and lines[1] in ["```", "```py", "```python"]:
commands = lines[0].split()
wakeword = commands.pop(0)
if not wakeword in ["py", "python"]:
Expand Down

0 comments on commit 093d31a

Please sign in to comment.