-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
30 lines (19 loc) · 829 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
import discord
from discord.ext import commands
from discord.ext import tasks
from itertools import cycle
import os
import pymongo
owners=['814353938429771776','918410542203412480']
client=commands.Bot(command_prefix='.',set_owners=owners)
status=cycle(['.help','Phoenix'])
cluster = pymongo.MongoClient('mongodb+srv://Phoenix:[email protected]/test')
db = cluster['DemonRPG']
@tasks.loop(seconds=7)
async def change_status():
await client.change_presence(activity=discord.Activity(type=discord.ActivityType.listening,name='Phoenix Chacha'))
client.remove_command('help')
for filename in os.listdir('./cogs'):
if filename.endswith('.py'):
client.load_extension(f'cogs.{filename[:-3]}')
client.run('OTIyODQzNTQ3MjQ4NTE3MTcw.YcHXBw.QeXfaLJ22FuWi9WofhJ6B9dGiNE')