Skip to content

0-don/coding.global-bot

Repository files navigation

Logo

coding.global Discord Bot

The official bot for the discord.gg/coding Discord Server.
» Explore the docs
· Report Bug · Request Feature

Setup

create a .env file with the correct value

npm install
npm run prisma
npm run dev

run /verify-all-users to verify all users in the server and the db.

Slash Commands


  • /delete-messages

    • Description: Deletes messages from a channel.
    • Options:
      • amount: Delete message history.
  • /me

    • Description: Get your stats.
  • /members

    • Description: Member flow and count of the past.
  • /top

    • Description: Get top user stats.
  • /translate

    • Description: Translate text to English.
    • Options:
      • text: The text to translate.
  • /troll-move-user

    • Description: Troll move user around empty voice channels.
    • Options:
      • user: Select either user which should be moved.
  • /user

    • Description: Get stats from a specific user.
    • Options:
      • user: Select the user whose stats should be shown.
  • /verify-all-users

    • Description: Verify all users in the server.
  • /ai

    • Description: Talk to the AI
    • Options:
      • text: Ask the AI a question.

restore db

docker exec -i coding-global-db pg_restore -U postgres -c -d coding-global-db -v < ~/coding-global-db-latest.sql.gz

backup raw db / restore raw db

docker exec -ti coding-global-db pg_dump -U postgres coding-global-db > coding-global-db.sql

cat coding-global-db.sql | docker exec -i coding-global-db psql -U postgres -d coding-global-db