Skip to content

A big mash of code written in spare time for the RYG community

License

Notifications You must be signed in to change notification settings

Imasaab/royalnet

Repository files navigation

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 music (and more) bot
  • errors.py: Exception classes for all modules
  • loldata.py: League of Legends Champion data obtained from Data Dragon (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
  • stagismo.py: Dictionary of words and memes beginning with S
  • statsupdate.py: Game data tracking (Dota, LoL...)
  • telegrambot.py: Telegram multipurpose bot
  • update.sh: Quick updater script
  • webserver.sh: Main 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.