Skip to content

DanielWidmayer/DiscordBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anwesenheitstracker

This Discord Bot is tracking if Students are online. License Build Status

Installation

To start the bot locally:

npm install
npm start

Attention: you need to create a bot therefore yourself and insert your Bot Secret Token in the index.js like this:

bot.login(yourSecretToken);

About

To use the database make sure you setup a proper potsgres environment.

This bot is used for only one server but can be forked and expanded. In our example we use a Postgres Database to store the userdata. By linking the Discord Tag with the Matrikelnumber we try to achieve a certain amount of anonymity. All commands start with the "!" Prefix defined in index.js.

We deployed over Heroku, using a free dyno with a worker that is executing node index.js, this is defined in the Procfile. By adding PostgreSQL as Add-on and storing the Discord-Bot Token as Config Vars, we can access the values without leaking.

Any Discord Bot needs to be created in the Discord Developer Portal. To dig deeper visit Discord.js.

Preview

[!help in Discord channel]

About

Discord Bot tracking if Students are online.

Resources

Stars

Watchers

Forks

Packages

No packages published