command handler updated

This commit is contained in:
Luca Schwan
2020-03-25 12:27:00 +01:00
parent 54d9cc9633
commit 6e0a5c704a
8 changed files with 168 additions and 128 deletions

8
src/commands/show.js Normal file
View File

@ -0,0 +1,8 @@
// eslint-disable-next-line no-unused-vars
module.exports = async (message, args, db) => {
// eslint-disable-next-line no-undef
db.query('SELECT * FROM DSAGeld WHERE userName = ' + '"' + message.author.tag + '"', function(err, row) { //the row is the user's data
message.reply('du hast: ' + row[0].GD + ' GD, ' + row[0].ST + ' ST, ' + row[0].BH + ' BH, ' + row[0].EK + ' EK.' );
}
);
};