Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcorpora.py
More file actions
Latest commit
41 lines (32 loc) · 1.13 KB
/
Copy pathcorpora.py
File metadata and controls
41 lines (32 loc) · 1.13 KB
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
"""
v0.01
This is corpora of computer cell bot on discord.
Defining your own command
=========================
@bot.command("ReplaceMe")
async def ReplaceMe(ctx):
await ctx.send("Response to the replace me command.")
"""
importrandom
classCorpora:
def__init__(self, bot):
@bot.command("hello")
asyncdefhello(ctx):
awaitctx.send("Hi")
@bot.command("pet")
asyncdefhello(ctx):
awaitctx.send("Thank you master. *purrrrs*")
@bot.command("roast")
asyncdefhello(ctx):
withopen("roasts.txt") asafile:
roasts=afile.readlines()
roast=random.choice(roasts)
awaitctx.send(roast)
@bot.command("insult")
asyncdefhello(ctx):
statements= [
"I bet you look like you were drawn with my left hand.",
"Quit being a spherical dumbass.",
"laying rocket league. I lost. “Tell your mom to make your mac n cheese, I’ll be home soon.",
]
awaitctx.send(random.choice(statements))