-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.py
37 lines (30 loc) · 1.02 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
import discord
import time
from discord.ext import commands
from secret import bot_token, application_id
from config import config
class MyBot(commands.Bot):
async def setup_hook(self):
for ext in config["cogs"]:
await self.load_extension(ext)
async def on_ready(self):
await self.wait_until_ready()
await self.change_presence(
status=discord.Status.idle,
activity=discord.Activity(
name="Velocidrone",
# url="https://www.velocidrone.com/",
type=discord.ActivityType.custom,
state="Destroying the competition!",
details="Destroying the competition!",
# timestamps={"start": time.time()},
# buttons=["https://www.velocidrone.com/"],
),
)
print(f"{self.user} has connected to Discord!")
bot = MyBot(
command_prefix=config["command_prefix"],
intents=discord.Intents.all(),
application_id=application_id,
)
bot.run(bot_token)