Exemple #1
0
 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
Exemple #2
0
def setup(bot: TeinfBot):
    bot.add_cog(Avatar(bot))
Exemple #3
0
def setup(bot: TeinfBot):
    bot.add_cog(Pierwiastek(bot))
Exemple #4
0
def setup(bot: TeinfBot):
    bot.add_cog(Clear(bot))
Exemple #5
0
def setup(bot: TeinfBot):
    bot.add_cog(Info(bot))
Exemple #6
0
def setup(bot: TeinfBot):
    bot.add_cog(Mem(bot))
Exemple #7
0
def setup(bot: TeinfBot):
    bot.add_cog(Music(bot))
Exemple #8
0
def setup(bot: TeinfBot):
    bot.add_cog(Say(bot))
Exemple #9
0
def setup(bot: TeinfBot):
    bot.add_cog(Czas(bot))
Exemple #10
0
def setup(bot: TeinfBot):
    bot.add_cog(Ranking(bot))
Exemple #11
0
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()
Exemple #12
0
def setup(bot: TeinfBot):
    bot.add_cog(RandomUser(bot))
Exemple #13
0
def setup(bot: TeinfBot):
    bot.add_cog(Stan(bot))
Exemple #14
0
def setup(bot: TeinfBot):
    bot.add_cog(Buttons(bot))
Exemple #15
0
def setup(bot: TeinfBot):
    bot.add_cog(Level(bot))
Exemple #16
0
def setup(bot: TeinfBot):
    bot.add_listener(on_message)
Exemple #17
0
def setup(bot: TeinfBot):
    bot.add_cog(Sherlock(bot))
Exemple #18
0
def setup(bot: TeinfBot):
    bot.add_cog(Lt(bot))
Exemple #19
0
def setup(bot: TeinfBot):
    bot.add_cog(Ruletka(bot))
Exemple #20
0
def setup(bot: TeinfBot):
    bot.add_cog(Kutas(bot))
Exemple #21
0
def setup(bot: TeinfBot):
    bot.add_cog(Nyzio(bot))