2022-11-30 18:29:09 +01:00
|
|
|
#coucou c'est fives
|
2022-12-08 22:21:53 +01:00
|
|
|
# wesh wesh ici latouff
|
2022-11-26 17:59:08 +01:00
|
|
|
import discord # pip install pycord
|
2022-12-16 12:50:52 +01:00
|
|
|
from discord import Intents
|
2022-11-27 12:28:02 +01:00
|
|
|
import asyncio # pip install asyncio
|
2022-12-08 22:21:53 +01:00
|
|
|
import cogs # import the cogs
|
2022-11-29 14:34:04 +01:00
|
|
|
import datetime # pip install datetime
|
2023-02-28 15:28:14 +01:00
|
|
|
from config import debug, conn, c, discord_token
|
2022-12-16 12:50:52 +01:00
|
|
|
#add the message content intent to the bot, aka discord.Intents.default() and discord.Intents.message_content
|
|
|
|
|
intents = discord.Intents.default()
|
|
|
|
|
intents.message_content = True
|
2022-12-13 08:27:25 +01:00
|
|
|
bot = discord.Bot(intents=intents, help_command=None) # create the bot
|
2022-12-08 22:21:53 +01:00
|
|
|
bot.add_cog(cogs.Setup(bot))
|
|
|
|
|
bot.add_cog(cogs.Settings(bot))
|
|
|
|
|
bot.add_cog(cogs.Help(bot))
|
|
|
|
|
bot.add_cog(cogs.Chat(bot))
|
|
|
|
|
bot.add_cog(cogs.ManageChat(bot))
|
2023-02-02 21:44:40 +01:00
|
|
|
bot.add_cog(cogs.Moderation(bot))
|
|
|
|
|
|
2022-12-13 21:36:29 +01:00
|
|
|
@bot.event
|
|
|
|
|
async def on_ready():
|
|
|
|
|
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="your messages to answer you"))
|
|
|
|
|
debug("Bot is ready")
|
2022-11-26 17:59:08 +01:00
|
|
|
|
2023-02-28 15:28:14 +01:00
|
|
|
|
|
|
|
|
bot.run(discord_token) # run the bot
|
2022-12-16 12:50:52 +01:00
|
|
|
#set the bot's watching status to watcing your messages to answer you
|
|
|
|
|
@bot.event
|
|
|
|
|
async def on_ready():
|
|
|
|
|
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="your messages to answer you"))
|
2022-12-16 12:54:21 +01:00
|
|
|
debug("Bot is ready")
|