discord_bot.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:discirc 作者: j0ack 项目源码 文件源码
def __init__(self, config):
        self.bot = discord.Client()
        self.token = config['discordToken']
        self.channels = config['mappingChannels']
        self.command_chars = config.get('commandChars', [])

        # signals
        self.discord_signal = signal(SIGNALNAMES.DISCORD_MSG)
        self.irc_signal = signal(SIGNALNAMES.IRC_MSG)
        self.irc_signal.connect(self.on_irc_message)

        self.bot.event(self.on_message)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号