and though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here

...
 
Commits (4)
{
"editor.detectIndentation": false,
"editor.autoIndent": "advanced",
"editor.tabSize": 4
}
This diff is collapsed.
......@@ -5,6 +5,7 @@
"main": "src/app.js",
"scripts": {
"lint": "eslint src/",
"start:dev": "nodemon src/app.js",
"start": "node src/app.js"
},
"author": "zeebhombal@gmail.com",
......@@ -16,6 +17,7 @@
"devDependencies": {
"eslint": "^7.7.0",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-plugin-import": "^2.22.0"
"eslint-plugin-import": "^2.22.0",
"nodemon": "^2.0.4"
}
}
\ No newline at end of file
}
......@@ -3,7 +3,7 @@ require('dotenv').config();
const client = new Discord.Client();
client.on('message', (message) => {
client.on('message', async (message) => {
if (!message.content.startsWith('%')) return;
if (message.content.toLowerCase().includes('ping')) {
message.channel.send('PONG MOMO');
......@@ -14,7 +14,8 @@ client.on('message', (message) => {
return;
}
if (message.content.toLowerCase() === '%whoami') {
message.channel.send('I am a worthless piece of garbage but still better than Kachra Seth @Alphis ;)');
await message.reply('I am a worthless piece of garbage but still better than Kachra Seth ;)');
console.log('Reply was sent!');
return;
}
if (message.content.toLowerCase() === '%source') {
......