Yet another Discord bot.
Trippie was written with NodeJS 14.14.0, so you may want to stay near this version.
Besides just running dist/Start.js
, all you really need to do is set up a cfg:
- Create a folder named
cfg
inside of thesrc
folder. - Create a file named
cfg.json
inside of this folder. - Add these keys:
- token
- The token of the bot.
- botId
- The integer Discord snowflake ID of the bot.
- ownerId
- Same as above, but the ID of the bot owner.
- logFile
- A path to a file in which to output logs to.
- postgreUrlUser
- The username of your PostgreSQL database.
- postgreUrlPass
- The password to this database.
- postgreUrlName
- The domain of this database.
- token
Here's a good example of the base cfg:
{
"token": "",
"botId": 767425062533595207,
"ownerId": 700091773695033505,
"logFile": "logs/trippie.log",
"postgreUrlUser": "bxukriei",
"postgreUrlPass": "bJvHQ88eJ50S7H5H0CXEXw0ZXz4Wy8-o",
"postgreUrlName": "salt.db.elephantsql.com:5432"
}
Be sure you've installed the most recent version of TypeScript, then just run tsc
. It'll transpile and set up deps.