mirror of
https://github.com/ION606/selmerBot.git
synced 2026-06-06 07:12:58 +00:00
Re-structured the file structure, finished the 'help' command. Started the 'game' command (not operational)
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
//@ts-check
|
||||
|
||||
|
||||
function hpmp(message, command, dbo) {
|
||||
if (command == 'hp') {
|
||||
dbo.find({"hp": {$exists: true}}).toArray(function(err, doc) {
|
||||
return message.reply(`You have ${String(doc[0].hp)} hp left!`);
|
||||
});
|
||||
} else if (command == 'mp') {
|
||||
dbo.find({"mp": {$exists: true}}).toArray(function(err, doc) {
|
||||
return message.reply(`You have ${String(doc[0].hp)} mp left!`);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
//#region Exports
|
||||
function verifyAndInitiate() {
|
||||
|
||||
}
|
||||
|
||||
function handle(user_dbo, other_dbo, bot, message, args, command, Discord, mongouri, items, xp_collection) {
|
||||
if (command == 'hp' || command == 'mp') {
|
||||
hpmp(message, command, user_dbo);
|
||||
} else if (command == 'initiate') {
|
||||
|
||||
}
|
||||
// initiate(user_dbo, other_dbo, command, message);
|
||||
}
|
||||
|
||||
|
||||
//#endregion
|
||||
|
||||
|
||||
module.exports = { handle }
|
||||
Reference in New Issue
Block a user