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 @@ ...@@ -5,6 +5,7 @@
"main": "src/app.js", "main": "src/app.js",
"scripts": { "scripts": {
"lint": "eslint src/", "lint": "eslint src/",
"start:dev": "nodemon src/app.js",
"start": "node src/app.js" "start": "node src/app.js"
}, },
"author": "zeebhombal@gmail.com", "author": "zeebhombal@gmail.com",
...@@ -16,6 +17,7 @@ ...@@ -16,6 +17,7 @@
"devDependencies": { "devDependencies": {
"eslint": "^7.7.0", "eslint": "^7.7.0",
"eslint-config-airbnb-base": "^14.2.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(); ...@@ -3,7 +3,7 @@ require('dotenv').config();
const client = new Discord.Client(); const client = new Discord.Client();
client.on('message', (message) => { client.on('message', async (message) => {
if (!message.content.startsWith('%')) return; if (!message.content.startsWith('%')) return;
if (message.content.toLowerCase().includes('ping')) { if (message.content.toLowerCase().includes('ping')) {
message.channel.send('PONG MOMO'); message.channel.send('PONG MOMO');
...@@ -14,7 +14,8 @@ client.on('message', (message) => { ...@@ -14,7 +14,8 @@ client.on('message', (message) => {
return; return;
} }
if (message.content.toLowerCase() === '%whoami') { 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; return;
} }
if (message.content.toLowerCase() === '%source') { if (message.content.toLowerCase() === '%source') {
......