Coder Social home page Coder Social logo

minsal-bot's Introduction

MinSal-Bot

Simple discord Bot for the Redhat-MinSal server.

Features

Voting:

  • /vote-start - Start a new voting session on the current channel
  • /vote <option> - Vote an option on the current voting session
  • /vote-end - End the voting session, and print the results

(coming soon) Points system:

  • /points-new <user> <team> - Add new user to the score system, and assign a team (repro, vitales)
  • /points-add <user> <points> - Add points to the user
  • /points-remove <user> <points> - Remove points from the user
  • /points-set <user> - Set the points of the user
  • /points-get <user> - Get the points of the user
  • /points-leaderboard - Get the leaderboard of the points for all teams

Setup

File .env must be created at the root of the project, and contain the following variables:

# Discord Bot Token
DISCORD_BOT_TOKEN=<token>
# Bot Client ID
DISCORD_BOT_CLIENT_ID=1010164462487085066
# Discord Server ID (To deploy commands)
DISCORD_SERVER_ID=998593186098315425
REDMINE_API_URL=<api_url>
REDMINE_API_KEY=<api_key>
# Mongo DB URL (Not used nor needed yet)
DB_MONGO_URL=<db_url>

For production:

  1. Deploy the commands on the server: npm run deploy-commands (runs once and finishes)
  2. Start the bot: npm run start (stars the bot and keeps it running)

For development:

  1. Run: npm run deploy-commands to deploy commands only for new or edited command name or parameters. DO NOT use this often, you will get a rate limit from discord.
  2. Start the bot: npm run dev (starts the bot in development mode, with hot reload)

minsal-bot's People

Contributors

nachiten avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.