-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
38 lines (31 loc) · 903 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
31
32
33
34
35
36
37
38
import os
from keep_alive import keep_alive
import discord
from discord.ext import commands
intents = discord.Intents.default()
intents.members = True
bot = commands.Bot(
command_prefix="!",
case_insensitive=True,
intents = intents
)
bot.author_id = 446835150685208576
bot.remove_command("help")
@bot.event
async def on_ready():
print("Logged in as " + str(bot.user))
print("I'm in " + str(len(bot.guilds)) + " servers so far.")
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.listening, name='your every command (!help)'), status=discord.Status.do_not_disturb)
extensions = [
'cogs.cog_developer',
'cogs.cog_general',
'cogs.cog_tictactoe',
'cogs.cog_help',
'cogs.cog_islamic'
]
if __name__ == '__main__':
for extension in extensions:
bot.load_extension(extension)
keep_alive()
token = os.environ.get("DISCORD_BOT_SECRET")
bot.run(token)