🐛💄 bugfix and avatar image

This commit is contained in:
Adrian Amaglio 2020-04-02 17:30:53 +02:00
parent f6c36b76ff
commit 8c6e538421
2 changed files with 2 additions and 1 deletions

BIN
avatar.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

View File

@ -146,6 +146,7 @@ const Discord = require('discord.js');
const client = new Discord.Client();
client.on('ready', () => {
console.log('Connected to Discord as ' + client.user.tag);
client.user.setAvatar('avatar.png')
});
/* Discord message center */
client.on('message', msg => {
@ -201,7 +202,7 @@ client.on('message', msg => {
else if(msg.content.startsWith('-')) {
const content = msg.content.slice(1)
if (content.toLowerCase() in reactions) {
educpopAddPerson(channel, msg.author.username, content.toLowerCase())
educpopDelPerson(channel, msg.author.username, content.toLowerCase())
msg.delete()
reply(channel)
}