Mafia Engine is a Discord bot written in Typescript. It is designed to be a simple, easy and fun bot to manage games of Mafia on the official Discord Mafia server. The main focus for this project is to remove any tedious aspect of managing the server and games while leaving it as fun for the hosts and players as possible.
This bot is currently in development and is actively getting new features and bug fixes. If you have any suggestions or find any bugs, please feel free to open an issue or pull request.
- Signup / Looking For Group functionality
- Automatic vote counting and vote handling
- Automatic game management (mass-changing permissions and creating appropriate channels)
- Written in Typescript using Discord.JS
- Using Prisma and PostgreSQL for database management
For all processes
- Clone the repository in a directory of your choice
- Run
npm install
to install all dependencies - Rename
.env.example
to.env
and fill in the appropriate values
To run the bot officially
- Run
npm run build
to build the project - Run
npm run start
to start the node process- If you wish to use pm2 to manage the process, run
npm run start:local
- If you wish to use pm2 to manage the process, run
- Enjoy!
To run the bot in a dev environment
- Run
npm run dev
to start the nodemon process