async def DnD(ctx): embed = discord.Embed( title='Greetings', description=Response.intro(self), colour=discord.Colour.red() ) await ctx.send(embed=embed)
async def spell_help(ctx): embed = discord.Embed( title='Spell Info Help - $Spell/help', description=Response.com_help(self, 'Spell'), colour=discord.Colour.red() ) embed.add_field( name='General', value=Response.spell_data["General"], inline=False) embed.timestamp = datetime.utcnow() embed.set_footer(text='MattMaster Bots: Dnd') await ctx.send(embed=embed)
async def classes_help(ctx): embed = discord.Embed( title='Classes Info Help - $Class/help', description=Response.com_help(self, 'Class'), colour=discord.Colour.red() ) embed.add_field( name='General', value=Response.class_data["General"], inline=False) embed.add_field( name='Class Spell List', value=Response.class_data["Class Spell List"], inline=False) embed.add_field( name='Class Subclass List', value=Response.class_data["Class Subclass List"], inline=False) embed.add_field( name='Class Feature List', value=Response.class_data["Class Feature List"], inline=False) embed.add_field( name='Class Proficiencies List', value=Response.class_data["Class Proficiencies List"], inline=False) embed.add_field( name='Class Starting Equipment List', value=Response.class_data["Class Starting Equipment List"], inline=False) embed.timestamp = datetime.utcnow() embed.set_footer(text='MattMaster Bots: Dnd') await ctx.send(embed=embed)
async def character_info_help(ctx): embed = discord.Embed( title='Character Info Help - $character_info/help', description=Response.com_help(self, 'Character Info'), colour=discord.Colour.red() ) embed.add_field(name='Ability Scores', value=str( Response.character_data["Ability-Scores"]).strip('[]'), inline=False) embed.add_field(name='Skills', value=str( Response.character_data["Skills"]).strip('[]'), inline=False) embed.add_field(name='Proficiencies', value=str( Response.character_data["Proficiencies"]).strip('[]'), inline=False) embed.add_field(name='Languages', value=str( Response.character_data["Languages"]).strip('[]'), inline=False) embed.add_field(name='Traits', value=str( Response.character_data["Traits"]).strip('[]'), inline=False) embed.add_field(name='Features', value=str( Response.character_data["Features"]).strip('[]'), inline=False) embed.timestamp = datetime.utcnow() embed.set_footer(text='MattMaster Bots: Dnd') await ctx.send(embed=embed)
async def help(ctx): embed = discord.Embed( title='Help - $help', description=Response.help(self), colour=discord.Colour.red() ) embed.add_field(name='Character Info', value="$Character_info/help", inline=True) embed.add_field(name='Classes', value='$Class/help', inline=True) embed.add_field(name='Races', value='$Race/help', inline=True) embed.add_field(name='Equipment', value='$Equipment/help', inline=True) embed.add_field(name='Spells', value='$Spell/help', inline=True) embed.add_field(name='Monsters', value='$Monster/help', inline=True) embed.add_field(name='Mechanic', value='$Mech/help', inline=True) embed.add_field(name='Rules', value='$Rule/help', inline=True) embed.add_field(name='Homebrews', value='Coming Soon', inline=True) embed.timestamp = datetime.utcnow() embed.set_footer(text='MattMaster Bots: Dnd') await ctx.send(embed=embed)
async def on_guild_join(guild): general = find(lambda x: x.name == 'general', guild.text_channels) if general and general.permissions_for(guild.me).send_messages: await general.send(Response.guild_join(guild.name))