Skip to content

A Discord Bot Token is a short phrase (represented as a jumble of letters and numbers) that acts as a “key” to controlling a Discord Bot. Tokens are used inside bot code to send commands back and forth to the API, which in turn controls bot actions. Never share your Discord Bot Token with anyone.

License

Notifications You must be signed in to change notification settings

anubhav217/Discord-Bot

Repository files navigation

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/anubhav217/Discord-Bot-Master
$ cd discord-bot
$ yarn install
$ yarn build

Configuration

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

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

About

A Discord Bot Token is a short phrase (represented as a jumble of letters and numbers) that acts as a “key” to controlling a Discord Bot. Tokens are used inside bot code to send commands back and forth to the API, which in turn controls bot actions. Never share your Discord Bot Token with anyone.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published