From 772b8c13413314a5cf00c77b990b464fec0a96af Mon Sep 17 00:00:00 2001 From: AnInternetTroll Date: Sat, 27 Jun 2020 15:07:10 +0200 Subject: Added elixir as a language --- cogs/compiler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit v1.2.3