mirror of
https://github.com/osmarks/autobotrobot
synced 2025-01-05 05:10:26 +00:00
Ignore case when picking language.
This commit is contained in:
parent
a57c5ec375
commit
521dc48d1c
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user