mirror of
https://github.com/RYGhub/royalnet.git
synced 2024-11-23 19:44:20 +00:00
Update config and readme
This commit is contained in:
parent
7eb4f7f88e
commit
5441ab51c4
2 changed files with 59 additions and 7 deletions
31
README.md
Normal file
31
README.md
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# Royalnet
|
||||||
|
|
||||||
|
This software is meant for a private internet community, therefore it contains many inside jokes and memes. Be warned!
|
||||||
|
|
||||||
|
## Modules
|
||||||
|
|
||||||
|
- `bots.py`: Auto-restarting of crashed modules.
|
||||||
|
- `cast.py`: Magic spell generation (/cast Telegram command)
|
||||||
|
- `db.py`: PostgreSQL+SQLAlchemy database connection
|
||||||
|
- `discordbot.py`: [Discord](https://discordapp.com/) music (and more) bot
|
||||||
|
- `errors.py`: Exception classes for all modules
|
||||||
|
- `loldata.py`: [League of Legends](https://euw.leagueoflegends.com/) Champion data obtained from [Data Dragon](https://developer.riotgames.com/static-data.html) (may require occasional updates, for example when new champions are released)
|
||||||
|
- `newuser.py`: _(broken)_ New user creation wizard
|
||||||
|
- `query_discord_music.py`: Big SQL queries
|
||||||
|
- `redditbot.py`: reddit bot for [/r/RoyalGames](https://reddit.com/r/RoyalGames)
|
||||||
|
- `stagismo.py`: Dictionary of words and memes beginning with **S**
|
||||||
|
- `statsupdate.py`: Game data tracking (Dota, LoL...)
|
||||||
|
- `telegrambot.py`: [Telegram](https://web.telegram.org/) [multipurpose bot](https://t.me/royalgamesbot)
|
||||||
|
- `update.sh`: Quick updater script
|
||||||
|
- `webserver.sh`: [Main](https://ryg.steffo.eu/) webserver for Royalnet
|
||||||
|
|
||||||
|
## Install
|
||||||
|
|
||||||
|
1. Download `python3.6+`, `sentry-cli` and `ffmpeg` (or `avconv`).
|
||||||
|
2. Clone the repository.
|
||||||
|
3. Rename the `template_config.ini` to `config.ini`.
|
||||||
|
4. Set the correct values in `config.ini`.
|
||||||
|
5. Add `SENTRY_AUTH_TOKEN=` and `SENTRY_ORG=` to `~/.sentryclirc`.
|
||||||
|
6. Open a new `screen` and there run `./update.sh`.
|
||||||
|
7. Detatch the screen with `Ctrl+A` and `Ctrl+D`.
|
||||||
|
|
|
@ -1,41 +1,62 @@
|
||||||
[Database]
|
[Database]
|
||||||
|
# Database URI in the SQLAlchemy format; a PostgreSQL database is suggested, but others _may_ work too
|
||||||
database_uri = postgres://
|
database_uri = postgres://
|
||||||
|
|
||||||
[Steam]
|
[Steam]
|
||||||
|
# Steam Developer API key, can be obtained at https://steamcommunity.com/dev/apikey
|
||||||
api_key =
|
api_key =
|
||||||
|
|
||||||
[League of Legends]
|
[League of Legends]
|
||||||
|
# Riot Games Developer API key, can be obtained at https://developer.riotgames.com/, requires a registered project
|
||||||
riot_api_key =
|
riot_api_key =
|
||||||
|
|
||||||
[Osu!]
|
[Osu!]
|
||||||
|
# osu! API key, can be obtained at https://osu.ppy.sh/p/api
|
||||||
ppy_api_key =
|
ppy_api_key =
|
||||||
|
|
||||||
[Discord]
|
[Discord]
|
||||||
|
# Discord bot token, obtained at https://discordapp.com/developers/applications/
|
||||||
bot_token =
|
bot_token =
|
||||||
|
# Server id (guild) in which the bot should be used in (with Developer Mode on, RMB+Copy ID)
|
||||||
server_id =
|
server_id =
|
||||||
|
# Channel in which all generic messages should be sent (again RMB+Copy ID)
|
||||||
main_channel =
|
main_channel =
|
||||||
afk_timer = 10
|
# Time in minutes before the bot automatically disconnects from voice chat
|
||||||
radio_messages_enabled = True
|
afk_timer = 30
|
||||||
radio_messages_every = 5
|
# Time in between two activity reports (viewable at https://ryg.steffo.eu/activity
|
||||||
activityreport_sample_time = 600
|
activityreport_sample_time = 600
|
||||||
|
|
||||||
[Telegram]
|
[Telegram]
|
||||||
|
# Telegram bot token, obtainable at https://t.me/BotFather
|
||||||
bot_token =
|
bot_token =
|
||||||
|
# Telegram main group id, where errors should be reported
|
||||||
main_group =
|
main_group =
|
||||||
|
|
||||||
[YouTube]
|
[Video]
|
||||||
max_duration = 7200
|
# Maximum videos in queue to predownload
|
||||||
predownload_videos = 5
|
cache_size = 5
|
||||||
download_timeout = 30
|
# Maximum time a video may take to become ready (download time) before being removed from the queue
|
||||||
|
max_ready_time = 30
|
||||||
|
# Enable radio messages?
|
||||||
|
radio_messages_enabled = False
|
||||||
|
# Number of videos between two radio messages
|
||||||
|
radio_messages_every = 5
|
||||||
|
|
||||||
[Sentry]
|
[Sentry]
|
||||||
|
# Sentry error-reporting token obtainable at https://sentry.io
|
||||||
token =
|
token =
|
||||||
|
|
||||||
[Flask]
|
[Flask]
|
||||||
|
# Secret key, used to encrypt cookies
|
||||||
secret_key =
|
secret_key =
|
||||||
|
|
||||||
[reddit]
|
[reddit]
|
||||||
|
# Client API id obtainable at https://www.reddit.com/dev/api/
|
||||||
client_id =
|
client_id =
|
||||||
|
# Client API secret obtainable at https://www.reddit.com/dev/api/
|
||||||
client_secret =
|
client_secret =
|
||||||
|
# Bot username
|
||||||
username =
|
username =
|
||||||
|
# Bot password
|
||||||
password =
|
password =
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue