Skip to content
This repository has been archived by the owner on Sep 8, 2024. It is now read-only.

brammittendorff/tegelbot

Repository files navigation

Tegeltjes bot for discord

Soon there will be alot of more functions and we will create a v1.0.0 version.

Sometimes people say strange things at work like: Stop it with the good idea's, i will think of something myself. Then we always put it with a marker on a tile on the wall. Now I created a bot that will do exacly the same but then in discord.

When you add this bot to the channel it will look for messages with /tile.

Bot

Requirements

  • node
  • npm

Configuration

npm install

Run the bot

node index.js

Usage of bot

Create a tile and display tile

/tile say When in doubt push it live

Save a tile

/tile save When in doubt push it live

List last 10 tiles

/tile list

Delete tile

/tile delete <tilenumber>

Select a tile

/tile select <tilenumber>

Deployment

Add bot to server

Add to server

Deploy to Heroku

Deploy

Development

Create an environment

Create a .env file with the following contents:

DISCORD_BOT_TOKEN="discordbottoken"
DATABASE_HOSTNAME="dbhostname"
DATABASE_USERNAME="dbusername"
DATABASE_PASSWORD="dbpassword"
DATABASE_DATABASE="dbname"

Migrations

Create migrations:

node src/database/pool.js add migration create_test_migration

Run migrations:

node src/database/pool.js up

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published