A comfortable Discord bot for convenience features.
Prefix: ??
Parenthesis are optional, square brackets are required.
help [command name]
: Finally, a help command!doctor
: Check if your servers are working.buffer ("delete" | "edit")
: Find deleted or edited messages.calc
: Calculator.confess
: Share your secrets.. secretly.img [search query]
: Gets google searches and images.quote
: Reply to someone to quote them saying a fire line of text. Includes attachments. Requires canvas-http-api.remindme
: Reminds you something in a specified time.randomweb
: Sends you a random website with gacha elements snuck in.sauce
: Reply to an image to find the source of the image relating to anime.
A basic file structure for easy additions to the bot.
- Put a
config.json
on the root of the folder.
The structure of it is like this:
{
"token": "[token of the bot here]",
"clientID": "[application id of the bot here]",
"test_token": "[token of the *test* bot here]",
"saucenao_token": "[saucenao token here]"
}
-
Download and extract canvas.
-
Run
npm install
andts-node --esm index.ts
. -
Run
npm install
,npm run build
, andnpm run prestart
in that order.
- Make sure to use prettier after you make changes to the code. Run it by calling
npm run format
.
Why is there SO MUCH HTTP servers??
- It seemed cool to implement but it got out of hand quickly.
- Adding unit tests with Chai to make the program a bit safe.