-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
30 lines (24 loc) · 904 Bytes
/
main.py
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
from commands import Commands
from apiDiscord import APIDiscord
import discord
from commands import Commands
com = Commands
client = discord.Client()
simp_api = APIDiscord()
discord_token = open("disc_token.cfg", "rt")
@client.event
async def on_ready():
await client.change_presence(status=discord.Status.online, activity=discord.Game('Type "pwi help" for commands'))
print('We have logged in as {0.user}'.format(client))
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.lower().startswith('pwi'):
tmp = await com.whichCommand(message.content)
poop = await simp_api.determineWhat(tmp)
await message.channel.send(embed=poop)
@client.event
async def sendAutoMesg(poop, message) :
await message.channel.send(embed=poop)
client.run(discord_token.readline())