-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbot.py
More file actions
79 lines (56 loc) · 2.33 KB
/
bot.py
File metadata and controls
79 lines (56 loc) · 2.33 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
import discord
import os
from discord.ext import commands, tasks
from random import choice
import json
def config(filename: str = "config"):
try:
with open(f"{filename}.json", encoding='utf8') as data:
return json.load(data)
except FileNotFoundError:
raise FileNotFoundError("JSON file wasn't found")
configfile = config("config")
client = commands.Bot(command_prefix="|")
status=['Anong ginagawgaw mo', 'Mark bulok ka', 'LF: GawJowa','Ginagawgaw ni mark', 'Kibong nanay mo','Gawgaw nyo pagod na','Tama na trashtalk tim','Gawgaw walang tutok', 'Tim ano ba yan','Asan kana kuya gaw','tim bat moko ginawang robot']
for filename in os.listdir('./cogs'):
if filename.endswith('.py'):
client.load_extension(f'cogs.{filename[:-3]}')
else:
print(f'Unable to load {filename[:-3]}')
@client.event
async def on_ready():
changeStatus.start()
print('Ready!')
@tasks.loop(minutes=5)
async def changeStatus():
await client.change_presence(activity=discord.Game(choice(status)))
@client.listen()
async def on_message(message):
if message.author==client.user:
return
if 'bobo' in message.content:
await message.channel.send("Mas bobo si **gawgaw** :zany_face:")
if '@here' in message.content:
await message.channel.send("Nyay Loner :woozy_face: ")
if 'Timoti' in message.content:
await message.channel.send("Do not disturb the `master` ples")
if 'tanga' in message.content:
await message.channel.send("HAHAHAHA **mark** tanga :zany_face:")
if 'gago' in message.content:
await message.channel.send("HAHAHAHA gago ka mark")
if 'Razz' in message.content:
await message.channel.send("Bakit mo hinahanap yung gwapo")
if str(message.author)=="Gaw#0068":
await message.add_reaction('🖕')
await message.add_reaction('🤬')
if str(message.author)=="timmm#3989":
await message.add_reaction("😍")
await message.add_reaction("❤")
await message.add_reaction("🧡")
await message.add_reaction("💛")
if str(message.author)=="Boj#6437":
await message.add_reaction("💥")
if str(message.author)=="𝚁𝚊𝚣𝚣#1558":
await message.add_reaction("🍆")
await message.add_reaction("🔥")
client.run(configfile["token"])