Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 1.49 KB

README.md

File metadata and controls

23 lines (15 loc) · 1.49 KB

Pokébot

Slack chat-bot that can query Wolfram Alpha, Bing, and will also add emoji reactions to queries on over 700 Pokemon.

If you as the bot a question directly using the @yourbotname callout, it will query wolfram Alpha and formulate a response to seem smart. If Wolfram Alpha does not produce an answer, it will then query the Bing API for results. The bot will detect any mention of a Pokémon (e.g. pikachu) and is currently configured to "react" with the corresponding Pokémon emoji (if already uploaded to slack). The code can alternatively be easily modified to respond with a random poke-fact on the mentioned Pokemon. Both the Pokémon functionality and wolfram alpha functionality may be disabled individually if desired.

Usage

You will need an api_token from Slack and optionally an app id from Wolfram Alpha (Free) and optionally an API key from Bing (Free) Clone this repo and the python-slackbot dependency. Then set-up a configuration YAML file containing slack_token and wolfram_alpha_appid

python pokebot/pokebot.py --config my_config.yml

Dependencies

https://github.com/bscan/python-slackbot

Disclaimers

Although my code is free to use and fork, all Pokémon are trademarks of Nintendo, and the Pokédex descriptions are copyrighted by Nintendo and are used under Fair Use policy. Wolfram|Alpha is trademarked by Wolfram Research. Bing is trademarked by Microsoft. Pokébot is not affiliated with or endorsed by Nintendo, Wolfram Research, or Microsoft.