-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbot.py
More file actions
33 lines (24 loc) · 1.01 KB
/
bot.py
File metadata and controls
33 lines (24 loc) · 1.01 KB
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
import plasma
import nextcord
from nextcord.ext import commands
class ClusterBot(commands.AutoShardedBot):
def __init__(self):
super().__init__(
commands.when_mentioned_or("?", ">", "-"),
activity=nextcord.Activity(type=nextcord.ActivityType.watching, name="Plasma"),
allowed_mentions=nextcord.AllowedMentions(everyone=False, replied_user=False),
case_insensitive=True,
intents=nextcord.Intents.all(),
owner_ids=plasma.OWNERS
)
for i in plasma.COGS:
self.load_extension(f"cogs.{i}")
self.run("OTkwMjE3OTA2MzMzODM5NDcx.GfVsR3.4feXv_SN_rhcjTYycU58bxa0rO1okJYs80L-Lc")
async def do_startup_tasks(self):
message = await self.get_channel(995006311391567983).fetch_message(995666569738862692)
await message.edit(view=plasma.ColorView())
async def on_ready(self):
print(f"Logged in as {self.user}.")
await self.do_startup_tasks()
if __name__ == "__main__":
ClusterBot()