A weird Discord bot, lover of cookies and banana bread. He's nice though, we promise. PFM uses the Discord.js library.
- either Bun or Node.js (v16.11.0 or higher)
- Git
- discord.js (v14)
- figlet (necessary for the
asciicommand)
- Fork this repository
- Then clone your forked repository to your local machine
- Install the dependencies with either
bun installornpm install
- Go to the Discord Developer Portal
- Click on "New Application" and give it a name
- Go to the "Bot" tab and click on "Add Bot"
- Click on "Copy" under "Token" and paste it into a file called
config.jsonin the root of the repository. Don't share this token with anyone! It will look like this:
{
"token": "your-token-here"
}- Invite your bot to your server by going back to the
General Infomrationtab, and writing down theClient ID. ReplaceCLIENT_IDin the following URL with that number and paste it into your web browser:
https://discord.com/oauth2/authorize?client_id=CLIENT_ID&scope=bot - Follow the on-screen instructions to invite your bot to your server
Simply use bun start or npm start to start the bot. If this is not working, feel free to use bun boot.ts or node boot.js instead.
Clam is the fun little tool used to clean up the log files generated by the bot @ deploy-commands.log and index.log. Easiest way to use it is to run bun clam.ts, in the root of the repository. It will clean up the logs, assuming they're not empty, and then exit.