Skip to content

A Discord bot written in discord.py for getting xkcd comics. Made with asyncio and aiohttp to be block-free.

License

Notifications You must be signed in to change notification settings

extr3mis/xkcdbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xkcdbot

A Discord bot written in discord.py for getting xkcd comics. Made with asyncio and aiohttp to be block-free.

Installing

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

Running

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

Usage

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.