Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Reg Bot—Bespoke Discord-management bot for a Made in Abyss roleplay server

License

NotificationsYou must be signed in to change notification settings

alpatron/reg-bot

Repository files navigation

Reg Bot was made to automate certain administratory task on theMade In Abyss RP roleplay Discord server. The tasks being:

  • Displaying an activity report of players with active characters to see which players are inactive. (It displays the last time a player has posted.)
  • Archiving player characters on demand.
  • Splitting a piece of text from Pastebin into chunks of less or equal to 2,000 characters. (For those really long RP posts.)
  • A stupid function which makes Reg say "irredeemable".

The bot is fully configurable as all configurations are stored in an external database.

If you are a member of our server, don't hesitate to try to improve Reg Bot. If you aren't, well, I don't think this bot would be of much use to you, but I dunno, it might.

Rad info

Reg Bot is coded in Python using thediscord.py library, it uses a Postgres database to store its configuration, to which it connects using theasyncpg library, and it is deployed—to the dismay of many discord.py developers—on Heroku (hey, it works; don't judge).

Environment variables

To run RegBot, you need to have these environment variables set:

  • DATABASE_URL — The URL pointing to the database where the bot configuration is stored. It should be a Postgres database and the string should conform to thedsn specification in theasyncpg library.
  • REG_BOT_KEY — Your Discord bot key

Database

I was too lazy to a create a database-initialisation function or to create a database dump, so here's at least the schema of the database tables:

configuaration
column namecolumn info
idinteger(auto-increment;primary key)
namecharacter varying[64]
valuecharacter varying[64]
roleplay_channels
column namecolumn info
idinteger(auto-increment;primary key)
channel_idcharacter varying[64]
roleplay_roles
column namecolumn info
idinteger(auto-increment;primary key)
role_idcharacter varying[64]
privileged_roles
column namecolumn info
idinteger(auto-increment;primary key)
role_idcharacter varying[64]

About

Reg Bot—Bespoke Discord-management bot for a Made in Abyss roleplay server

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp