Just another discord bot. Have fun.
Prerequisites: You will need
node
,npm
, and TypeScript installed. You also need an internet connection, a Discord account, and you will have to create an application and bot via Discord's developer portal.
Clone the repository, cd
into it, and install dependencies:
npm install
# Or pnpm install, yarn, etc.
Create a .env
file in the project root, and put your bot token and user id in it:
TOKEN=YOUR_TOKEN_HERE
AUTHOR_ID=YOUR_USER_ID_HERE
⚠ Warning: DO NOT COMMIT THE
.env
FILE OR ANYTHING CONTAINING YOUR TOKEN TO VERSION CONTROL.
Then, compile and run the bot:
npm start
See the architecture notes for some details on how everything works.
help
- help command, self-explanatorystop
- stops the bot (only usable by the owner of the bot)version
- show the package version of the botabout
- show info about the bot (name, version, GitHub repo, description, etc.)flip
- flip a coin
- Object-based command system supporting aliases and taking full advantage of typescript's type system.
poll
- a poll command, because we don't have enough of thoseroll
- roll dice using dice notation- maybe a command to view GitHub repos?
- More to come!
- Command parser supporting quoted arguments and (rudimentary) flags (like most command-line apps).
- Output using embeds.
- An option (maybe via a
--no-embed
flag) to fall back to regular text instead of using embeds. - A shiny GitHub Pages site.
- More to come!