def __init__(self, client): self.client = client self.bot = c.BotConfig() self.embed_img =['https://cdn.discordapp.com/attachments/556807734436167710/587636780694503436/hk416_girls_frontline_drawn_by_nlitz__b548fd4deda227586ab681f3aeef700c.png','https://cdn.discordapp.com/attachments/556807734436167710/583731618280112129/IMG_20190530_205301.jpg','https://cdn.discordapp.com/attachments/556807734436167710/587592676526915594/a2ZrZ7e_700b.png', ' https://cdn.discordapp.com/attachments/556807734436167710/580066744907857925/IMG_20190520_181410.jpg'] self.not_see_command = self.bot.no_help
def __init__(self, client): self.client = client self.bot = c.BotConfig() self.game_list = []
import discord from discord.ext import commands import functions.load_config as c bot = c.BotConfig() client = commands.Bot(command_prefix=bot.prefix) client.remove_command("help") #retire la commande help extensions = ['commands.tools', 'commands.configuration', 'commands.battle'] #listes des extensions à charger if __name__ == "__main__": for extension in extensions: try: client.load_extension(extension) print(f"{extension} a bien était chargée") except Exception as error: print(f"{extension} ne peut pas être chargée, {error}") @client.event async def on_ready(): print('Bot is ready') await client.change_presence(status=discord.Status.online, activity=discord.Game("e/help")) @client.event async def on_member_join(member): print(f'{member} à rejoint le serveur')
def __init__(self, client): self.client = client self.bot = c.BotConfig()