A Discord bot written in discord.py for getting xkcd comics. Made with asyncio and aiohttp to be block-free.
Python 3.5.3 or higher is required
To install the bot you can just run the following command:
$ git clone https://github.com/extr3mis/xkcdbot
$ cd xkcdbot
$ python -m pip install -r requirements.txt
Make a Discord bot account and copy the token. Save the token as an environment variable using the key DISCORD_BOT_TOKEN
. Once done just run the following commands:
$ cd xkcdbot
$ python main.py
To use the bot just type !x
or !xkcd
followed by the comic number. To get the latest comic, leave the number blank.
You can reach me on Discord @Extr3mis#9663.