π§ Triecback is a core part of the Triecbot smart ecosystem, designed to make server management smooth, smart, and professional.
- π Full backup of all mutual servers
- π Stores user roles and permissions accurately
- π Auto-generates permanent invite links
- π‘οΈ Smart approval system for restoring sensitive permissions
- π¬ Sends detailed DM reports to users
- βοΈ MongoDB Atlas support for secure and fast storage
- π Auto-delete backups after 30 days to save space
| Tool | Required Version |
|---|---|
| Node.js | v16 or higher |
| MongoDB | Atlas or local instance |
| Discord Bot | Permissions: MANAGE_ROLES, CREATE_INSTANT_INVITE, SEND_MESSAGES, VIEW_CHANNEL |
git clone https://github.com/abdou-da0wew/triecback.git
cd triecbacknpm installTOKEN=your_token_here
MONGO_URI=your_mongodb_uri
PREFIX=! # or any prefix you like
CLIENT_ID=your_bot_idnpm start!backup true false- First
true/false: Save user roles? - Second
true/false: Only include servers where you have admin rights?
β Backups are stored in the database and linked to each userβs account.
- When the user rejoins a server, Triecback will ask admins for permission to restore their roles.
- Once approved, the roles and permissions will be applied automatically.
src/
βββ commands/ # All commands
β βββ backup.js # Backup command
βββ events/ # Discord events like guild join
β βββ guildCreate.js
βββ models/ # MongoDB models
β βββ Backup.js
βββ services/ # Backup and DB logic
β βββ backupService.js
β βββ databaseService.js
βββ utils/ # Helper utilities
β βββ backupUtils.js
β βββ permissionUtils.js
βββ config.js # Loads environment variables
βββ .env # Sensitive keys and configs
βββ index.js # Main entry point| Command | Description | Example |
|---|---|---|
!backup <r> |
Create a backup with/without roles | !backup true false |
- π Backups are automatically deleted after 30 days.
- β Bot must have admin permissions to apply roles and generate invites.
- π€ Backup reports are sent directly to the user via DM.
Wanna improve Triecback? Fork and go wild:
git clone fork https://github.com/Abdou-rx/triecback
git checkout -b feature/super-idea
git commit -m "Added a cool feature π₯"- GitHub: Abdou-rx
- Backup GitHub: abdou-da0wew
- Official Website: Triecbot.xyz
- Invite Bot: Click here
- Support Server: Join Support
This project is licensed under the MIT License.

