2016-07-10 01:21:54 +12:00
# Bonfire
2016-07-08 01:03:28 +12:00
This is for a Discord bot using the discord.py wrapper made for fun, used in a couple of my own servers.
2016-07-10 05:20:06 +12:00
If you'd like to add this bot to one of your own servers, please visit the following URL:
https://discordapp.com/oauth2/authorize?client_id=183748889814237186& scope=bot& permissions=0
2016-08-12 17:34:17 +12:00
2016-08-13 08:33:55 +12:00
This requires the discord.py library, as well as all of it's dependencies.
2016-08-12 17:34:17 +12:00
https://github.com/Rapptz/discord.py
2016-10-16 18:19:37 +13:00
To save the data for the bot, rethinkdb is what is used:
https://www.rethinkdb.com/docs/install/
I also use a few libraries that aren't included by default, which can be installed using pip.
2016-08-12 17:34:17 +12:00
```
2016-10-16 18:19:37 +13:00
python3.5 -m pip install rethinkdb pendulum ruamel.yaml Pillow
# Or on windows
py -3 -m pip install rethinkdb pendulum ruamel.yaml Pillow
2016-08-12 17:34:17 +12:00
```
The only required file to modify would be the config.yml.sample file. The entries are as follows:
- bot_token: The token that can be retrieved from the [bot's application page ](https://discordapp.com/developers/applications/me )
- owner_id: This is your ID, which can be retrieved by right clicking your name in the discord application, when developer mode is on
- description: Self explanotory, the description for the bot
- command_prefix: A list of the prefixes you want the bot to respond to, if none is provided in the config file ! will be used
2016-10-02 16:40:49 +13:00
- default_status: The default status to use when the bot is booted up, which will populate the "game" that the bot is playing
2016-08-13 08:33:55 +12:00
- discord_bots_key: The key for the [bots.discord.pw site ](https://bots.discord.pw/#g=1 ), if you don't have a key just leave it blank, it should fail and log the failure
2016-10-02 16:40:49 +13:00
- carbon_key: The key used for the [carbonitex site ](https://www.carbonitex.net/discord/bots )
- twitch_key: The twitch token that is used for the API calls
- shard_count: This is the number of shards the bot is split over. 1 needs to be used if the bot is not being sharded
- shard_id: This will be the ID of the shard in particular, 0 if sharding is not used
- db_*: This is the information for the rethinkdb database. The cert is the certificate used for driver connections