aboutsummaryrefslogtreecommitdiff
path: root/cogs
diff options
context:
space:
mode:
authorAnInternetTroll <lucafulger@gmail.com>2020-06-27 13:07:10 +0000
committerAnInternetTroll <lucafulger@gmail.com>2020-06-27 13:07:10 +0000
commit772b8c13413314a5cf00c77b990b464fec0a96af (patch)
tree794cabb70d23cb615e92a854ffd6bca50e5d7f25 /cogs
parent6368eb4cadde12083d085ea5b65be752e1e1dd15 (diff)
downloadsteve-bot-772b8c13413314a5cf00c77b990b464fec0a96af.tar
steve-bot-772b8c13413314a5cf00c77b990b464fec0a96af.tar.gz
steve-bot-772b8c13413314a5cf00c77b990b464fec0a96af.tar.bz2
steve-bot-772b8c13413314a5cf00c77b990b464fec0a96af.tar.lz
steve-bot-772b8c13413314a5cf00c77b990b464fec0a96af.tar.xz
steve-bot-772b8c13413314a5cf00c77b990b464fec0a96af.tar.zst
steve-bot-772b8c13413314a5cf00c77b990b464fec0a96af.zip
Added elixir as a language
Diffstat (limited to 'cogs')
-rw-r--r--cogs/compiler.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cogs/compiler.py b/cogs/compiler.py
index 3046349..3bc6bef 100644
--- a/cogs/compiler.py
+++ b/cogs/compiler.py
@@ -36,6 +36,7 @@ class Compiler(commands.Cog):
"rust": "rust-head",
"sql": "sqlite-head",
"perl": "perl-head",
+ "elixir": "elixir-head",
"lua": "lua-5.3.4"
}
if not language:
@@ -44,7 +45,7 @@ class Compiler(commands.Cog):
await ctx.send("No code found")
return
try:
- compiler = compilers[language]
+ compiler = compilers[language.lower()]
except KeyError:
await ctx.send("Language not found")
return