A Discord bot written in eris for proxying user messages through webhooks to emulate users having multiple Discord accounts.
Tupperbox requires Node.js (must be at least v14), PostgreSQL (v11, preferably v12) and Redis (stable, currently v6.0.8). You can download Node.js here, PostgreSQL here and Redis here (Linux) or here (Windows).
Once Node.js is installed, run npm install
from the bot directory to install the bot's dependencies. (Note: you may have to run npm -g install windows-build-tools
first if on Windows)
The bot expects a file in the same directory named .env
with its configuration info. An example configuration can be found in the .env.example
file.
-
The PG-prefixed variables should be filled in with the connection info to your PostgreSQL database set up during installation.
You need a database, a user with associated password with full write access to that database, and the host IP of the machine running the server (localhost if it's the same machine). -
SENTRY_DSN is a link to a registered Sentry project. See https://sentry.io/ for more information on Sentry.
This is optional. -
Edit
DEFAULT_PREFIX
,DEFAULT_LANG
as desired. -
BOT_INVITE
is the bot's user ID, used in thetul!invite
command.SUPPORT_INVITE
is the invite ID (not invite link) to the bot's support server, used in thetul!feedback
command.
Remove either of these to remove the respective bot commands. -
Leave
REDISURL
alone unless you change the port Redis runs on or you host it on another machine.
The previous version of the bot used JSON as a database.
If you would like to upgrade, install PostgreSQL and Redis, switch to the rewrite branch, and on startup the bot will prompt you to import your JSON databases to the Postgres server you've configured automatically. (Make a backup of these files first - it will delete them!)