mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 17:04:49 +08:00
added unlink discord command sending
This commit is contained in:
parent
96097e83c4
commit
1ce7533aa5
1 changed files with 4 additions and 5 deletions
|
@ -19,6 +19,10 @@ class BotDAO {
|
|||
return await addCommand("linkDiscord", [discordId, uid]);
|
||||
}
|
||||
|
||||
static async unlinkDiscord(uid, discordId) {
|
||||
return await addCommand("unlinkDiscord", [discordId, uid]);
|
||||
}
|
||||
|
||||
static async awardChallenge(discordId, challengeName) {
|
||||
return await addCommand("awardChallenge", [discordId, challengeName]);
|
||||
}
|
||||
|
@ -34,11 +38,6 @@ class BotDAO {
|
|||
con,
|
||||
]);
|
||||
}
|
||||
|
||||
// this probably will be rewritten but keeping the old code just in case
|
||||
// static async announceDailyLbResult(lbdata) {
|
||||
// return await addCommand("announceDailyLbResult", [lbdata]);
|
||||
// }
|
||||
}
|
||||
|
||||
module.exports = BotDAO;
|
||||
|
|
Loading…
Reference in a new issue