-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
52 lines (38 loc) · 1.07 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
import asyncio
import os
import traceback
import B
import discord
import ClientConfig
from cogs import EXTENSIONS
bot = ClientConfig.bot
async def status_task():
await bot.change_presence(
status=discord.Status.online,
activity=discord.Activity(type=discord.ActivityType.listening, name="Orders for Soda"),
)
await asyncio.sleep(40)
await bot.change_presence(
status=discord.Status.online,
activity=discord.Activity(
type=discord.ActivityType.listening, name="Bot PFP made by Dutchy#6127(thank you) :D"
),
)
await asyncio.sleep(40)
async def startup():
await bot.wait_until_ready()
await status_task()
@bot.event
async def on_ready():
print("Bot is Ready")
print(f"Logged in as {bot.user}")
print(f"Id: {bot.user.id}")
@bot.event
async def on_error(event, *args, **kwargs):
more_information = os.sys.exc_info()
error_wanted = traceback.format_exc()
traceback.print_exc()
# print(more_information[0])
B.b()
bot.loop.create_task(startup())
bot.run(os.environ["TOKEN"])