2020-04-23 03:28:51 +00:00
|
|
|
# HypeBot
|
|
|
|
A Discord bot for managing events. Uses [Serenity](https://github.com/serenity-rs/serenity) for the bot framework
|
|
|
|
and [Disel](http://diesel.rs/) as an ORM.
|
|
|
|
|
|
|
|
## Running
|
2020-04-23 03:30:52 +00:00
|
|
|
`./hype_bot config.toml`
|
2020-04-23 03:28:51 +00:00
|
|
|
|
|
|
|
##Config
|
|
|
|
```toml
|
|
|
|
# Database URL
|
|
|
|
db_url = "mysql://[user]:[password]@localhost/hypebot_db"
|
|
|
|
# Default image to show on the thumbnail
|
|
|
|
default_thumbnail_link = "https://i.imgur.com/wPdnvoE.png"
|
|
|
|
# Discord bot key
|
|
|
|
discord_key = ""
|
|
|
|
# Bot command prefix
|
|
|
|
prefix = "~"
|
|
|
|
# Channel ID to post to
|
|
|
|
event_channel = 0
|
|
|
|
# Permissions to use the bot
|
|
|
|
event_roles = 0
|
2020-04-24 00:45:02 +00:00
|
|
|
# Timezone to display events
|
|
|
|
event_timezone = "America/New_York"
|
2020-04-27 23:16:03 +00:00
|
|
|
# Path to logger
|
|
|
|
log_path = "hype_bot.log"
|
2020-04-23 03:28:51 +00:00
|
|
|
```
|