🧠 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.

