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

...
 
Commits (3)
...@@ -11,7 +11,7 @@ module.exports = { ...@@ -11,7 +11,7 @@ module.exports = {
'rules': { 'rules': {
'indent': [ 'indent': [
'error', 'error',
'tab' 2
], ],
'linebreak-style': [ 'linebreak-style': [
'error', 'error',
......
{ {
"editor.detectIndentation": false, "editor.detectIndentation": false,
"editor.autoIndent": "advanced", "editor.autoIndent": "advanced",
"editor.tabSize": 4, "editor.tabSize": 2,
"editor.insertSpaces": false "editor.insertSpaces": true
} }
const Discord = require('discord.js'); const Discord = require('discord.js');
const commandHandler = require('./commands');
require('dotenv').config(); require('dotenv').config();
const client = new Discord.Client(); const client = new Discord.Client();
client.on('message', async (message) => { client.on('message', commandHandler);
if (!message.content.startsWith('%')) return;
if (message.content.toLowerCase().includes('ping')) {
message.channel.send('PONG MOMO');
return;
}
if (message.content.toLowerCase().includes('allah')) {
message.channel.send('Allah says alcohol is allowed as per Shatterdome senpai');
return;
}
if (message.content.toLowerCase() === '%whoami') {
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') {
message.channel.send('Find the code for this abomination at https://git.rip/radicalpubes/tint ');
return;
}
});
client.once('ready', () => { client.once('ready', () => {
console.log('Choo Choo madafaka I\'m ready'); console.log('Choo Choo madafaka I\'m ready');
......
module.exports = async (message) => {
const guildId = '465448041286205443';
const channelId = '735147889088528394';
if (guildId !== message.guildId) return; //
if (channelId !== message.channelId) return;
let regex = /^!pt\s.+/i;
if (!regex.exec(message.content)) return; // Return if message doesn't begin with !pt
// if (message.content.toLowerCase().includes('ping')) {
// message.channel.send('PONG MOMO');
// return;
// }
// if (message.content.toLowerCase().includes('allah')) {
// message.channel.send('Allah says alcohol is allowed as per Shatterdome senpai');
// return;
// }
// if (message.content.toLowerCase().includes('whoami')) {
// await message.channel.send('I am a worthless piece of garbage but still better than Kachra Seth ;) <@465447490192146442>');
// console.log('Reply was sent!');
// return;
// }
// if (message.content.toLowerCase() === '%source') {
// message.channel.send('Find the code for this abomination at https://git.rip/radicalpubes/tint ');
// return;
// }
};