Skip to content

Conversation

@s0lst1ce
Copy link
Collaborator

@s0lst1ce s0lst1ce commented Feb 15, 2021

The intent is to completely write the bot anew, in rust. However I don't intend to cut down on features, quite the opposite. Hence it is first necessary to implementt all current features in rust. This pull request tracks this.

Commands

  • Poll
  • Slapping
  • Development
  • Role
  • Embedding
  • Time
  • Essentials
  • config

Misc

  • Document DB setup
  • deploy/update script
  • script to run the bot
  • error handler
  • document errors

@s0lst1ce s0lst1ce changed the title Complete rewrite in rustt Complete rewrite in rust Feb 15, 2021
@s0lst1ce
Copy link
Collaborator Author

The current DB schema goes as follows (currently using MariaDB but all types are from standard SQL)

MariaDB [botanist]> describe slaps;
+------------+---------------------+------+-----+---------+-------+
| Field      | Type                | Null | Key | Default | Extra |
+------------+---------------------+------+-----+---------+-------+
| message_id | bigint(64) unsigned | NO   | PRI | NULL    |       |
| guild_id   | bigint(64) unsigned | YES  |     | NULL    |       |
| chan_id    | bigint(64) unsigned | YES  |     | NULL    |       |
| reason     | varchar(2048)       | YES  |     | NULL    |       |
+------------+---------------------+------+-----+---------+-------+

MariaDB [botanist]> describe guilds;
+-----------------+---------------------+------+-----+---------------+-------+
| Field           | Type                | Null | Key | Default       | Extra |
+-----------------+---------------------+------+-----+---------------+-------+
| id              | bigint(64) unsigned | NO   | PRI | NULL          |       |
| welcome_message | varchar(2048)       | YES  |     | "Welcome {}!" |       |
| goodbye_message | varchar(2048)       | YES  |     | "Goodbye {}!" |       |
| advertise       | tinyint(1)          | YES  |     | 1             |       |
| admin_chan      | bigint(64) unsigned | YES  |     | NULL          |       |
| poll_chans      | bigint(64) unsigned | YES  |     | NULL          |       |
| priv_manager    | bigint(64) unsigned | YES  |     | NULL          |       |
| priv_admin      | bigint(64) unsigned | YES  |     | NULL          |       |
| priv_event      | bigint(64) unsigned | YES  |     | NULL          |       |
+-----------------+---------------------+------+-----+---------------+-------+

@s0lst1ce s0lst1ce self-assigned this Apr 10, 2021
@s0lst1ce s0lst1ce marked this pull request as draft September 1, 2021 20:08
@s0lst1ce
Copy link
Collaborator Author

s0lst1ce commented Sep 1, 2021

All DB interactions will now be handled through rust-db-adapter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants