bot.py 文件源码

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

项目:andreppbot 作者: losoliveirasilva 项目源码 文件源码
def echo(bot, update):
    global max_

    if update.message.from_user.username == "andremesquita96":
        user_message = update.message.text

        if randint(1, max_) == 3:
            if '?' in user_message:
                bot.sendMessage(update.message.chat_id, text='{}, {}'.format(
                                'Responde', choice(automatic_swearwords)))
            else:
                bot.sendMessage(update.message.chat_id, text='{}, {}'.format(
                                user_message, choice(automatic_swearwords)))

        if max_ < 6:
            max_ += 1
        else:
            max_ = 3
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号