def setup(client): client.add_cog(fun(client))
def setup(client): client.add_cog(birthdays(client))
@is_owner() async def rawdata(self, ctx): """Gives raw data from the database on the current guild.""" guild_query = session.query(Server).filter_by(id=ctx.guild.id).first() if guild_query: guild_data = guild_query.__dict__ guild_data.pop('_sa_instance_state') await ctx.send(f"```{guild_data}```") else: add_server(ctx.guild.id) @commands.command(brief="Checks all users against the database.") @is_owner() async def buildusers(self, ctx): """Checks all users agaist the database, if one is not found it adds it.""" mes = await ctx.send("*Processing...*") count = check_all_users() await mes.edit( content=f":white_check_mark: Added `{count}` users to the database." ) client.add_cog(VanillaCommands(client)) client.add_cog(ServerCommands(client)) client.add_cog(HumorCommands(client)) client.add_cog(FunCommands(client)) client.add_cog(UserCommands(client)) client.add_cog(EducationCommands(client)) client.add_cog(NSFWCommands(client)) client.add_cog(MaintenanceCommands(client))
def setup(client): client.add_cog(LeagueProfiles(client))
def setup(client): client.add_cog(msgLogger(client))
def setup(client): client.add_cog(versus(client))
voice = get(client.voice_clients, guild=reaction.message.channel.guild) if (reaction.emoji == self.emoji_play_stop): if voice and voice.is_playing(): voice.pause() self.panel.embeds[0].title = "Paused" self.panel.embeds[0].color = discord.Colour.red() else: voice.resume() self.panel.embeds[0].title = "Playing 🎵" self.panel.embeds[0].color = discord.Colour.green() elif (reaction.emoji == self.emoji_repeat): if self.repeat: self.repeat = False self.panel.embeds[0].set_field_at( 0, name=self.panel.embeds[0].fields[0].name, value='❌') else: self.repeat = True self.panel.embeds[0].set_field_at( 0, name=self.panel.embeds[0].fields[0].name, value='✅') # remove reaction await reaction.message.remove_reaction(reaction, user) # edit panel await self.panel.edit(embed=self.panel.embeds[0]) client.add_cog(Music(client))
def setup(client): client.add_cog(Notes(client))
def setup(client): client.add_cog(devTools(client))
def setup(client): client.add_cog(cmds(client))
def setup(client): client.add_cog(Misc(client))
def setup(client): client.add_cog(ricePurity(client))