Enginebot Giveaway
a giveaway bot
部署此模板
在 GitHub 上打开
简介
README.md
目录
Overview
- EngineBot — the engine, in
src/core/. Loader, router, Components v2 helpers, database drivers. Knows nothing about giveaways. - Giveaway — the bot, in
src/commands/giveaway/,src/components/,src/events/. Built on the engine.
| Commands | UI | Permissions | Multiserver | Database |
|---|---|---|---|---|
| Prefix & Slash | Components v2 | Discord flags | Yes ✅ | 8 drivers ✅ |
The bot
/giveaway/end <id or link>/reroll <id or link>- The button's label and emoji are kept per server
- Setup needs Manage Server
help and ping ship too, as /help and !help.
The engine
| Driver | What it is |
|---|---|
auto |
SQLite on Node 22.5+, else enginedb. No dependency either way. |
sqlite |
A SQLite file, through node:sqlite. |
enginedb |
The engine's format. Append-only log, folded into a snapshot. |
fusion |
Speed first. All in RAM. Hungry. |
spectral |
Memory first. Interned values, deflated on disk. |
json |
One readable JSON file. |
text |
One key<TAB>value line per entry. Copy it for your own. |
mysql |
A MySQL server. Needs npm install mysql2. |
memory |
Saves nothing. For tests. |
Your own driver: extend Driver, point driver at the file's path.
The token is all it needs. The app id is read from it. Turn on the Message Content intent for the prefix commands.
License
MIT
变量
部署时由你填写,它们会成为你部署的环境变量。
TOKENTOKEN 必填, 机密
如何部署
- 1 打开部署页面为部署命名。确认时再登录即可。
- 2 填写变量填写模板所需的值,它们会保存为你部署的环境变量。
- 3 检查资源从你套餐的共享资源池中划拨,然后启动。所有账号都从免费套餐开始。