mirror of
https://github.com/osmarks/autobotrobot
synced 2025-11-12 21:43:03 +00:00
Ignore case when picking language.
This commit is contained in:
@@ -138,7 +138,8 @@ command!(exec(_context, message) {
|
||||
};
|
||||
|
||||
let code = &captures[2];
|
||||
let lang = &captures[1];
|
||||
let lang = captures[1].to_lowercase();
|
||||
let lang = lang.as_str();
|
||||
let channel = &message.channel_id;
|
||||
|
||||
match lang {
|
||||
|
||||
Reference in New Issue
Block a user