-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.py
32 lines (24 loc) · 778 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
31
32
import discord
from discord.ext import commands
import config
if __name__ == "__main__":
##set up client
intents = discord.Intents.default()
intents.members = True
client = commands.Bot(command_prefix='!')
@client.event
async def on_ready():
print("We have logged in as {0}".format(client.user))
game = discord.Game("Korea Guild Bro")
await client.change_presence(activity=game)
## Points Tracker
client.load_extension("points")
client.load_extension("flames")
## GPQ Tracker
if(not config.GPQ_SHEET_ID == None):
client.load_extension("gpq")
## Piggy Bank Tracker
if(not config.PB_SHEET_ID == None):
client.load_extension("piggybank")
##run bot
client.run(config.TOKEN)