-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.py
More file actions
25 lines (19 loc) · 689 Bytes
/
main.py
File metadata and controls
25 lines (19 loc) · 689 Bytes
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
import discord
import random
from verbs import verb_check
token = os.environ['DISCORD_BOT_TOKEN'] # Environment variable
intents = discord.Intents.default()
intents.message_content = True
client = discord.Client(intents=intents)
@client.event
async def on_ready():
print(f'{client.user} in da house bois')
@client.event
async def on_message(message):
if message.author != client.user:
content = message.content
check, output = verb_check(content)
if random.choice([check, 0]): # 1 in 2 chance of occurring
if check:
await message.channel.send(f"you know who else {output}? MY MOM!")
client.run(token)