-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbot.py
More file actions
30 lines (24 loc) · 901 Bytes
/
bot.py
File metadata and controls
30 lines (24 loc) · 901 Bytes
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
# ✦ shadowocto.dev ✦
from utils.config import NAME, VERSION, TOKEN, BUILD
from objects.bot_instance import bot
from commands import command_manager
from commands.impl import changelogs
from events import event_manager
from datetime import datetime
from utils import webhook
from utils import output
from utils import embeds
bot_commands = {}
print(f"- {NAME} v{VERSION} -")
print("✦ shadowocto.dev ✦")
output.log(f"Started {NAME} (Version: {VERSION}, Build Type: {BUILD})")
@bot.event
async def on_ready():
output.log("Connected to Discord application")
current_time = datetime.now().strftime('%H:%M:%S')
webhook_description = f"```Version: {VERSION}\nBuild Type: {BUILD}\nTime: {current_time}```"
webhook.update_status("Bot Restarted", webhook_description, embeds.GREEN)
changelogs.refresh_changelogs()
command_manager.load_commands()
event_manager.init()
bot.run(TOKEN)