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

...
 
Commits (12)
BOT_TOKEN=asdlaskdkasdnlkasdn
\ No newline at end of file
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'
]
}
};
# Node Modules
node_modules/
# tokens
.env
\ No newline at end of file
# TINT
Tint is node based Discord built using the discord.js npm library.
For now, it does absolutely nothing.
Thanks
\ No newline at end of file
This diff is collapsed.
{
"name": "discord-bot",
"version": "1.0.0",
"description": "A Discord built for the LOLs",
"main": "src/app.js",
"scripts": {
"lint": "eslint src/",
"start": "node src/app.js"
},
"author": "zeebhombal@gmail.com",
"license": "MIT",
"dependencies": {
"discord.js": "^12.3.1",
"dotenv": "^8.2.0"
},
"devDependencies": {
"eslint": "^7.7.0",
"eslint-config-airbnb-base": "^14.2.0",
"eslint-plugin-import": "^2.22.0"
}
}
\ No newline at end of file
const Discord = require('discord.js');
require('dotenv').config();
const client = new Discord.Client();
client.on('message', (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') {
message.channel.send('I am a worthless piece of garbage but still better than Kachra Seth @Alphis ;)');
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', () => {
console.log('Choo Choo madafaka I\'m ready');
});
client.login(process.env.BOT_TOKEN);