This is the source for the SerenityOS Discord Bot.
The bot is written in TypeScript, nodejs
and yarn
are pre-requisites.
Then setup your environment:
$ git clone https://github.com/anubhav217/Discord-Bot-Master
$ cd discord-bot
$ yarn install
$ yarn build
To configure the bot for local development you simply need to drop your discord bot token in an .env
file at the root of this project.
The contents should look something like:
discord_token=<your-token-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
There are no tests yet, please help add some.
This was originally based off of the following discord bot template: https://github.com/MidasXIV/hive-greeter