mirror of
https://github.com/Paillat-dev/Botator.git
synced 2026-01-02 09:16:19 +00:00
[GENERAL] Code reformatting using Black standard
This commit is contained in:
33
code/code.py
33
code/code.py
@@ -1,13 +1,12 @@
|
||||
#coucou c'est fives
|
||||
# wesh wesh ici latouff
|
||||
import discord # pip install pycord
|
||||
import discord # discord.py
|
||||
from discord import Intents
|
||||
import cogs # import the cogs
|
||||
import cogs # import the cogs
|
||||
from config import debug, discord_token
|
||||
#add the message content intent to the bot, aka discord.Intents.default() and discord.Intents.message_content
|
||||
|
||||
# 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
|
||||
bot = discord.Bot(intents=intents, help_command=None) # create the bot
|
||||
bot = discord.Bot(intents=intents, help_command=None) # create the bot
|
||||
bot.add_cog(cogs.Setup(bot))
|
||||
bot.add_cog(cogs.Settings(bot))
|
||||
bot.add_cog(cogs.Help(bot))
|
||||
@@ -15,20 +14,32 @@ bot.add_cog(cogs.Chat(bot))
|
||||
bot.add_cog(cogs.ManageChat(bot))
|
||||
bot.add_cog(cogs.Moderation(bot))
|
||||
|
||||
|
||||
@bot.event
|
||||
async def on_ready():
|
||||
await bot.change_presence(activity=discord.Activity(type=discord.ActivityType.watching, name="your messages to answer you"))
|
||||
await bot.change_presence(
|
||||
activity=discord.Activity(
|
||||
type=discord.ActivityType.watching, name="your messages to answer you"
|
||||
)
|
||||
)
|
||||
debug("Bot is ready")
|
||||
|
||||
|
||||
bot.run(discord_token) # run the bot
|
||||
#set the bot's watching status to watcing your messages to answer you
|
||||
bot.run(discord_token) # run the bot
|
||||
|
||||
|
||||
# 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"))
|
||||
await bot.change_presence(
|
||||
activity=discord.Activity(
|
||||
type=discord.ActivityType.watching, name="your messages to answer you"
|
||||
)
|
||||
)
|
||||
debug("Bot is ready")
|
||||
|
||||
|
||||
@bot.event
|
||||
async def on_application_command_error(ctx, error):
|
||||
debug(error)
|
||||
await ctx.respond(error, ephemeral=True)
|
||||
await ctx.respond(error, ephemeral=True)
|
||||
|
||||
Reference in New Issue
Block a user