extr3mis / xkcdbot

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:MIT License


Languages

Language:Python 100.0%