This is a Bot allowing you to utilize the Italy Mafia Roleplay Forum and Italy Mafia Roleplay Dashboard within Discord.
I used to use this Bot in order to get any reports about my friends and myself in realtime and also to search for other players very easily.
I know the code is kinda sloppy in some sense, however it did it's job.
The Bot was written in JavaScript with discord.js, puppeteer and cheerio.
Warning: The features may be deprecated due to Forum or Dashboard updates. The project is no longer actively maintained and therefore discontinued. This script does not store any of your information on some server. All data remains local.
- /online -> Tells you how many players are currently online.
- /admins -> Showcases all current logged in admins.
- /factions -> Displays useful information about each available faction.
- /searchplayer <Player_Name> -> Fetches public Information about entered player.
- Automatically fetching all player reports based on family name.
All commands (including reports) are being showed in embeds.
In order to install this bot, you will need to setup a few things before actually running it.
- Setup a Discord bot.
- Create or use a Discord Server.
- Get the Server-ID and two different Channel-ID's.
- Setup an enviroment with Node.js installed.
(If you are using Heroku, also include this step)
- Include a Puppeteer Buildpack.
Note: Any Server that runs on Linux might have issues using puppeteer. You might wanna look into your specific OS to find a work around.
Now if your enviroment is fully setup, install all required packages:
npm install
Before launching the script, you now have to add the required information into your .env file. Please take a look at it to understand how the information is added in there.
Once that is done, launch the script:
node entry.js
Down here you can see some screenshots on how the bot sends messages.