def get_online_members(bot: TeinfBot) -> List[discord.Member]: members: List[discord.Member] = [] for channel in bot.get_all_channels(): if str(channel.type ) == "voice" and channel.id != MembersUtils.AFK_CHANNEL_ID: for member in channel.members: members.append(member) return members
def setup(bot: TeinfBot): bot.add_cog(Avatar(bot))
def setup(bot: TeinfBot): bot.add_cog(Pierwiastek(bot))
def setup(bot: TeinfBot): bot.add_cog(Clear(bot))
def setup(bot: TeinfBot): bot.add_cog(Info(bot))
def setup(bot: TeinfBot): bot.add_cog(Mem(bot))
def setup(bot: TeinfBot): bot.add_cog(Music(bot))
def setup(bot: TeinfBot): bot.add_cog(Say(bot))
def setup(bot: TeinfBot): bot.add_cog(Czas(bot))
def setup(bot: TeinfBot): bot.add_cog(Ranking(bot))
from teinfbot.bot import TeinfBot import os if __name__ == "__main__": DEBUG = True if os.environ.get("DEBUG") == "TRUE" else False tfbot = TeinfBot(debug=DEBUG) tfbot.run()
def setup(bot: TeinfBot): bot.add_cog(RandomUser(bot))
def setup(bot: TeinfBot): bot.add_cog(Stan(bot))
def setup(bot: TeinfBot): bot.add_cog(Buttons(bot))
def setup(bot: TeinfBot): bot.add_cog(Level(bot))
def setup(bot: TeinfBot): bot.add_listener(on_message)
def setup(bot: TeinfBot): bot.add_cog(Sherlock(bot))
def setup(bot: TeinfBot): bot.add_cog(Lt(bot))
def setup(bot: TeinfBot): bot.add_cog(Ruletka(bot))
def setup(bot: TeinfBot): bot.add_cog(Kutas(bot))
def setup(bot: TeinfBot): bot.add_cog(Nyzio(bot))