Silvanus is a companion bot for Limbo Labs' Grow A Tree bot https://silvanus.vfsh.dev
Go to file
Skylar Grant 6f2b16460b reverse the order in which we check for messages 2023-01-23 21:18:28 -05:00
.github/workflows New name and versioning 2023-01-23 18:03:48 -05:00
data reverse the order in which we check for messages 2023-01-23 21:18:28 -05:00
modules Add fancy activities 2023-01-23 20:50:14 -05:00
slash-commands reverse the order in which we check for messages 2023-01-23 21:18:28 -05:00
.DS_Store Revert "Pull from treeanalyzer" 2023-01-21 09:58:32 -05:00
.dockerignore Initial Commit 2023-01-17 19:35:24 -05:00
.eslintrc.json Initial Commit 2023-01-17 19:35:24 -05:00
.gitignore AFSD 2023-01-23 21:02:32 -05:00
Dockerfile Use node 18 2023-01-23 17:11:01 -05:00
README.md Revert "Pull from treeanalyzer" 2023-01-21 09:58:32 -05:00
main.js Add fancy activities 2023-01-23 20:50:14 -05:00
package.json Add fancy activities 2023-01-23 20:50:14 -05:00

README.md

Grow A Tree Analyzer

This bot works with Grow A Tree Bot by Limbo Labs. This project is not affiliated with Limbo Labs in any way.

This bot allows easy comparison between a server's tree and other trees displayed on the leaderboard.

Usage

Add the bot to your server and make sure it has the proper permissions (Send Messages and Send Messages in Threads if applicable), then run /setup in the channel(s) that contain your server's tree and leaderboard messages.

Commands

  • /setup - Attempts automatic detection of your server's tree and leaderboard messages.
  • /setupinfo - Displays your server's current configuration.
  • /reset - Resets your server's configuration, run /setup again if needed.

Database Structure

Table: guildinfo

+-----------------+-------------+------+-----+---------+----------------+
| Field           | Type        | Null | Key | Default | Extra          |
+-----------------+-------------+------+-----+---------+----------------+
| id              | int(10)     | NO   | PRI | NULL    | auto_increment |
| guild_id        | varchar(50) | NO   |     | NULL    |                |
| tree_message_id | varchar(50) | NO   |     | NULL    |                |
| tree_channel_id | varchar(50) | NO   |     | NULL    |                |
| rank_message_id | varchar(50) | NO   |     | NULL    |                |
| rank_channel_id | varchar(50) | NO   |     | NULL    |                |
| tree_height     | varchar(10) | NO   |     | NULL    |                |
+-----------------+-------------+------+-----+---------+----------------+

Table: treeinfo

+-----------+--------------+------+-----+---------+----------------+
| Field     | Type         | Null | Key | Default | Extra          |
+-----------+--------------+------+-----+---------+----------------+
| id        | int(10)      | NO   | PRI | NULL    | auto_increment |
| treename  | varchar(100) | NO   |     | NULL    |                |
| treerank  | int(10)      | NO   |     | NULL    |                |
| timestamp | varchar(50)  | NO   |     | NULL    |                |
+-----------+--------------+------+-----+---------+----------------+

Changes to Implement

  • Move around some of the functions.
  • Migrate storage to SQLite.