Git Product home page Git Product logo

gagbot.rs's Introduction

gagbot.rs

GaGBot is a utility bot for discord servers, written in Rust

To get the latest stable release, check out the releases page.

This is a Rust port of the original kylrs GaGBot

Features

Got a good idea? Open an issue and start the discussion!

Getting Started

Prerequisites

Installation

  1. Create a Discord Application and get a Bot Token
    1. Requires Presence Intent, Server Members Intent and Message Content Intent under the Bot tab
  2. Invite the bot to your server.
    1. https://discordapi.com/permissions.html to get an invite link without OAuth2
    2. Permissions required
      1. Administrator
  3. Clone the repo or grab a stable release (recommended)
  4. Install the bot
  cd /gagbot.js
  cargo build --release --bin main
  1. Create an environment variable named DISCORD_TOKEN, and set it to your bot's token.
  2. Run the bot. If all goes well, you'll see the bot communicating with discord
  ./target/release/main
  1. You can test your bot using the /ping command in your server chat

  2. TODO Configure GaGBot!

Built With

Contributors

License

Free and open source software distributed under the terms of both the MIT License and the Apache License 2.0.

gagbot.rs's People

Contributors

kylrs avatar cs2dsb avatar dependabot[bot] avatar

gagbot.rs's Issues

Enforced single selection role sets

Description

Require all users to have at least 1 from a given set of roles

Why?

Force all users to either have DMs Open or DMs Closed

Implementation Details

Would also need to add one as a default when members join. Also would need to filter these roles out during the !promote check

Migrate away from heroku

Description

Free dynos are being deprecated

Implementation Details

Deadline is November 28th, 2022

Bot should generate the message for reaction roles

Description

Currently a user has to post the message that the bot then adds reaction roles to. This prevents other mods from editing the message text. The bot should post in the provided channel with a message constructed from the rr title + values.

Why?

So anyone with access to the bot rr commands can update rr messages without the author having to do it.

Implementation Details

The bot will have to update the text any time a new rr is added to the set but it keeps track of the message ID anyway so this shouldn't be an issue.

Buld action has some deprecated commands

See recent action runs but this is the most concerning:
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

Report feature

Description

Allow non-mods to @ the bot and have the contents of their message dumped into a report channel for mod attention.

Why?

Hopefully improve unsolicited DM report reliability.

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.