Skip to content

kordwarshuis/kerific-discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Info

This is a Discord bot written in Node.js. It is hosted on Heroku. The bot is currently in development.

The bot can retrieve information concerning KERI (https://github.com/SmithSamuelM/Papers/blob/master/whitepapers/KERI_WP_2.x.web.pdf).

Info for the user of the Discord bot

How to use this bot

Type the following in the KERI Discord channel prompt:

kerific help

From there you will find moren information.

Info for the administrator of the Discord bot

To make the Discord bot work, you need to do the following:

  • 1: Discord: Create a NodeJS server (for example on Heroku)
  • 2: Heroku: Configure Discord to allow the bot to connect

1: Discord

The repo you are looking at contains the code for the bot. To make this work, things need to be done on the Discord Developer Portal: you have to create a bot there.

To create a new bot for Discord, you need to start by setting it up through the Discord Developer Portal, not directly within the Discord app's server settings. Here’s a step-by-step guide on how to create a new bot:

  • Go to Discord's Developer Portal and log in with your Discord user-id
  • Create a New Application: Click on the “New Application” button. Name your application and save your changes. Store the information in a secure place
  • Add a Bot to Your Application: In your application's settings, find the “Bot” tab and click on “Add Bot”. You will then see a message confirming the creation of the bot
  • Configure Your Bot: Customize your bot's name and icon
  • Configure Your Bot: Activate the three options under “Privileged Gateway Intents”
  • Configure Your Bot: Leave everything under “Bot Permissions” unchecked (TODO: check if this is correct)
  • Copy the Bot Token (scroll up for this button): You will have to reset the token although you have never seen the token before (confusing). Securely store the bot's token, which you will need to use to connect your bot to the Discord API. Never share this token publicly

2: Heroku

Some useful links

An introduction course to Heroku: https://www.udemy.com/course/heroku-for-nodejs (Last updated 11/2021) The information is outdated due to the recent changes to Heroku.

However setting up a Discord bot on the Heroku side can be done with help of the links that are provided in the Heroku Dashboard. The Heroku Dashboard is accessible through the Heroku website: https://dashboard.heroku.com/apps

Settings https://dashboard.heroku.com/apps/kerisse-discord-bot/settings

Procfile https://devcenter.heroku.com/articles/preparing-a-codebase-for-heroku-deployment#3-add-a-procfile

Deploy https://devcenter.heroku.com/articles/git#deploy-your-code

Config vars https://devcenter.heroku.com/articles/config-vars

Command line

Realtime info:

$ heroku logs --tail

This will continuously output information.

Restart the Dyno:

$ heroku restart

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published