forked from FO-nTTaX/Liquipedia-Discord-Bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiscordbot.py
30 lines (25 loc) · 847 Bytes
/
discordbot.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
#!/usr/bin/env python3
# License MIT
# Copyright 2016-2021 Alex Winkler
# Version 3.0.0
import discord
from discord.ext import commands
from dislash import *
from ftsbot import secrets
from ftsbot.cogs.antispam import antispam
from ftsbot.cogs.channelmoderation import channelmoderation
from ftsbot.cogs.presence import presence
from ftsbot.cogs.rolecommands import rolecommands
from ftsbot.cogs.textcommands import textcommands
from ftsbot.cogs.wikicommands import wikicommands
intents = discord.Intents.default()
intents.members = True
bot = commands.Bot(command_prefix='!fobot ', intents=intents, help_command=None)
SlashClient(bot)
bot.add_cog(antispam(bot))
bot.add_cog(channelmoderation(bot))
bot.add_cog(presence(bot))
bot.add_cog(rolecommands(bot))
bot.add_cog(textcommands(bot))
bot.add_cog(wikicommands(bot))
bot.run(secrets.token)