1
0
mirror of https://github.com/osmarks/autobotrobot synced 2024-06-16 01:59:59 +00:00

Ignore case when picking language.

This commit is contained in:
osmarks 2018-11-11 14:22:01 +00:00
parent a57c5ec375
commit 521dc48d1c

View File

@ -138,7 +138,8 @@ command!(exec(_context, message) {
}; };
let code = &captures[2]; let code = &captures[2];
let lang = &captures[1]; let lang = captures[1].to_lowercase();
let lang = lang.as_str();
let channel = &message.channel_id; let channel = &message.channel_id;
match lang { match lang {