File tree Expand file tree Collapse file tree 2 files changed +31
-0
lines changed
Expand file tree Collapse file tree 2 files changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -52,5 +52,7 @@ async def unload(ctx: discord.ext.commands.Context, extension: str):
5252 await ctx .send (f"O cog { extension } foi desativado." )
5353
5454
55+ # Load extensions
5556client .load_extension ("bot.cogs.belts" )
5657client .load_extension ("bot.cogs.daily_report" )
58+ client .load_extension ("bot.cogs.help" )
Original file line number Diff line number Diff line change 1+ import discord
2+ from discord .ext import commands
3+
4+
5+ class Help (commands .Cog ):
6+ def __init__ (self , client : commands .Bot ):
7+ self .client = client
8+
9+ @commands .command (name = "help" )
10+ async def help (self , ctx : discord .ext .commands .Context ) -> None :
11+
12+ # Embed sent by the bot
13+ embed = discord .Embed (
14+ title = "Comandos: [Obrigatório] <Opcional> (alias)" , color = 0x3489EB
15+ )
16+
17+ fields = [
18+ ("$help" , "É preciso apresentações?" ),
19+ ("$promove [ninja] [cinturão]" , "Promove um ninja para o cinturão dado." ),
20+ ]
21+
22+ for name , value in fields :
23+ embed .add_field (name = name , value = value , inline = False )
24+
25+ await ctx .reply (embed = embed )
26+
27+
28+ def setup (client ):
29+ client .add_cog (Help (client ))
You can’t perform that action at this time.
0 commit comments