pogobot.py 文件源码

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

项目:PogomBOT 作者: eugenio412 项目源码 文件源码
def cmd_help(bot, update):
    chat_id = update.message.chat_id
    logger.info('[%s] Sending help text.' % (chat_id))
    text = "/help /start \n" + \
    "/add <#pokedexID> \n" + \
    "/add <#pokedexID1> <#pokedexID2> ... \n" + \
    "/addbyrarity <#rarity> - With 1 uncommon to 5 ultrarare \n" + \
    "/clear \n" + \
    "/rem <#pokedexID> \n" + \
    "/rem <#pokedexID1> <#pokedexID2> ... \n" + \
    "Send <location> - Search a location \n" +\
    "/location <s> - Send a location as text \n" +\
    "/radius <m> - Search radius in m \n" +\
    "/remloc - Clear location data\n" +\
    "/list \n" + \
    "/save \n" + \
    "/load \n" + \
    "/lang en"
    bot.sendMessage(chat_id, text)
    tmp = ''
    for key in pokemon_name:
        tmp += "%s, " % (key)
    tmp = tmp[:-2]
    bot.sendMessage(chat_id, text= '/lang [%s]' % (tmp))
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号