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
ascii
command)
- Fork this repository
- Then clone your forked repository to your local machine
- Install the dependencies with either
bun install
ornpm 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.json
in 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 Infomration
tab, and writing down theClient ID
. ReplaceCLIENT_ID
in 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.