No description
  • TypeScript 100%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2025-09-25 13:04:16 +02:00
.github Dependencies: Bump akhileshns/heroku-deploy from 3.12.14 to 3.13.15 2024-05-17 15:23:02 -07:00
src Update path to fortunes.json file 2025-09-25 13:04:16 +02:00
tests Tests: Add two fetchSerenityRepos tests 2022-11-06 13:47:18 -07:00
typings Typings: Add typings for mastodon module 2023-03-24 21:47:17 +00:00
.codespellrc Meta: Add codespell enforcement to pre-commit rules 2022-09-09 15:31:35 -07:00
.eslintignore Everywhere: Initial skeleton of the bot project! 2021-04-25 01:30:40 -07:00
.eslintrc CI: Enforce camelCase for non property identifiers 2021-04-29 08:06:32 +00:00
.gitignore Meta: Properly .gitignore the build directory 2022-11-06 13:47:18 -07:00
.pre-commit-config.yaml Meta: Enable more pre-commit rules 2022-09-09 15:42:24 -07:00
.prettierrc Meta: Add prettier based eslint formatting 2021-04-25 02:58:29 -07:00
LICENSE Meta: Add LICENSE file 2021-04-25 11:30:43 +00:00
package.json Meta: Specify "--files" when running ts-node 2023-12-12 12:43:56 -05:00
Procfile Deployment: Move Procfile back to the source tree 2021-06-16 12:29:43 -07:00
README.md Meta: Enable more pre-commit rules 2022-09-09 15:42:24 -07:00
tsconfig.json Typings: Add typings for mastodon module 2023-03-24 21:47:17 +00:00
yarn.lock Revert "Install node-gyp explicitly" 2023-11-01 06:54:02 -04:00

This is the source for the SerenityOS Discord Bot.

Setup

The bot is written in TypeScript, nodejs and yarn are pre-requisites.

Then setup your environment:

$ git clone https://github.com/SerenityOS/discord-bot
$ cd discord-bot
$ yarn install
$ yarn build

Configuration

To configure the bot for local development you simply need to drop your discord bot token and guild ID in an .env file at the root of this project. The contents should look something like:

discord_token=<your-token-goes-here>
guild_id=<your-guild-id-goes-here>

See: https://www.writebots.com/discord-bot-token/

Now you can run yarn start:dev and the bot will startup, and then restart as you save changes to the source files:

$ yarn start:dev
[nodemon] 2.0.7
[nodemon] to restart at any time, enter `rs`
[nodemon] watching path(s): src/**/*
[nodemon] watching extensions: ts,js
[nodemon] starting `ts-node ./src/index.ts`
Buggie bot has started

Running Tests

There are no tests yet, please help add some.

Credits

This was originally based off of the following discord bot template: https://github.com/MidasXIV/hive-greeter