-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.js
42 lines (37 loc) · 2.04 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
const Discord = require('discord.js')
const client = new Discord.Client()
const gApi = require('./sheetsapi.js')
client.on('ready', () => {
console.log(`logged on as ${client.user.tag}.`)
})
client.on('message', msg => {
if(msg.content[0] === '!') {
command = msg.content.slice(1)
switch(command) {
case 'help': msg.channel.send('no u'); break;
case 'crewlist': msg.channel.send('https://docs.google.com/spreadsheets/d/1eZpNToP9dqIbEykBOal6z_OaFfaWKDTtnJXfKunebsc/edit?usp=sharing'); break;
case 'tea': msg.channel.send('T I M E F O R T E A'); break;
case 'gucc': msg.channel.send(`Gooch has no beginning. Gooch has no end. Gooch is infinite. Millions of years after our civilization has been eradicated and forgotten, Gooch will endure.
Gooch is eternal. The pinnacle of evolution and existence.
We are but rudimentary creatures of blood and flesh. We touch the mind of Gooch, fumbling in ignorance, incapable of understanding.
Organic life is nothing but a genetic mutation, an accident. Our lives are measured in years and decades. We wither and die. Gooch is eternal. Before it, we are nothing.
Gooch imposes order on the chaos of organic life. We exist because Gooch allows it, and we will end because Gooch demands it.
Gooch transcends our very understanding. We cannot grasp the nature of the existence of Gooch.
`); break;
case 'nevans': msg.channel.send(`NEVANS CAR
NEVANS CAR`); break;
}
}
if(msg.content.toLowerCase().includes('fuck') || msg.content.toLowerCase().includes('hell') || msg.content.toLowerCase().includes("shit")) {
msg.channel.send(msg.content
.replace(new RegExp('fuck', 'g'), 'frick')
.replace(new RegExp('hell', 'g'), 'heck')
.replace(new RegExp('shit', 'g'), 'poop')
+"*")
}
if(msg.content.includes('r/')) {
msg.channel.send("http://reddit.com/"+msg.content.match("r/[_\w]+"))
}
})
if(!process.env["discord_key"]) console.log("no key found")
client.login(process.env["discord_key"])