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

...
 
Commits (3)
module.exports = { module.exports = {
'env': { 'env': {
'commonjs': true, 'commonjs': true,
'es2020': true, 'es2020': true,
'node': true 'node': true
}, },
'extends': 'eslint:recommended', 'extends': 'eslint:recommended',
'parserOptions': { 'parserOptions': {
'ecmaVersion': 11 'ecmaVersion': 11
}, },
'rules': { 'rules': {
'indent': [ 'indent': [
'error', 'error',
'tab' 2
], ],
'linebreak-style': [ 'linebreak-style': [
'error', 'error',
'unix' 'unix'
], ],
'quotes': [ 'quotes': [
'error', 'error',
'single' 'single'
], ],
'semi': [ 'semi': [
'error', 'error',
'always' 'always'
] ]
} }
}; };
{ {
"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');
}); });
client.login(process.env.BOT_TOKEN); client.login(process.env.BOT_TOKEN);
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;
// }
};