Skip to content

cgraamans/eurobot

Repository files navigation

Eurobot

Eurobot is a discord.js bot which provides news, calendar and routing functions to the Forum Gotterfunken discord server.

Commands

Setup

npm i
npm i -g typescript pm2

Must be in posession of:

  • MySQL or MariaDB installed with the database imported from ./sql/init.sql
  • Google calendar json export
  • Reddit API keys
  • Twitter API keys
  • Mastodon token
  • Telegram token
  • Bluesky token

Build

npm run build

Note: can run on a Raspberry Pi but can't be built on one, lol.

Watch

npm start

Daemonize

cd dist
pm2 start eurobot.js

Update Discord Commands List

cd dist
node deploy-commands.js

Environmental variables

#
# Eurobot
#

# Mysql
export EUROBOT_DB_USERNAME=""
export EUROBOT_DB_PASSWD=""
export EUROBOT_DB=""

# Discord
export EUROBOT_DISCORD=""

# Mastodon
export EUROBOT_MASTO=""

# Reddit
export EUROBOT_REDDIT_CLIENT_ID=""
export EUROBOT_REDDIT_CLIENT_SECRET=""
export EUROBOT_REDDIT_REFRESHTOKEN=""

# Telegram
export EUROBOT_TELEGRAM_TOKEN=""

# Twitter
export EUROBOT_TWITTER_CONSUMER_KEY=""
export EUROBOT_TWITTER_CONSUMER_SECRET=""
export EUROBOT_TWITTER_TOKEN_KEY=""
export EUROBOT_TWITTER_TOKEN_SECRET=""

#Bluesky
export EUROBOT_BLUESKY_KEY=""

About

Forum Gotterfunken Eurobot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published