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 = {
'env': {
'commonjs': true,
'es2020': true,
'node': true
},
'extends': 'eslint:recommended',
'parserOptions': {
'ecmaVersion': 11
},
'rules': {
'indent': [
'error',
'tab'
],
'linebreak-style': [
'error',
'unix'
],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
]
}
'env': {
'commonjs': true,
'es2020': true,
'node': true
},
'extends': 'eslint:recommended',
'parserOptions': {
'ecmaVersion': 11
},
'rules': {
'indent': [
'error',
2
],
'linebreak-style': [
'error',
'unix'
],
'quotes': [
'error',
'single'
],
'semi': [
'error',
'always'
]
}
};
{
"editor.detectIndentation": false,
"editor.autoIndent": "advanced",
"editor.tabSize": 4,
"editor.insertSpaces": false
"editor.detectIndentation": false,
"editor.autoIndent": "advanced",
"editor.tabSize": 2,
"editor.insertSpaces": true
}
const Discord = require('discord.js');
const commandHandler = require('./commands');
require('dotenv').config();
const client = new Discord.Client();
client.on('message', async (message) => {
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.on('message', commandHandler);
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);
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;
// }
};