Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function statusUpdate() {
- var update = bot.channels.get('57776238223424324234234');
- const statusEmbed = new Discord.RichEmbed();
- statusEmbed.setTitle("**Current Statuss:**");
- con.query("SELECT * FROM games", function(err, result, fields) {
- if(err) throw err;
- Object.keys(result).forEach(function(key) {
- var row = result[key];
- statusEmbed.addField('**' + row.name + '**' + ' - ' + '(' + row.description + ')' + ' - ' + '**' + row.status + '**');
- });
- });
- update.send(statusEmbed);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement