GithubHelp home page GithubHelp logo

Introduction

This is a Discord application for experimenting ideas on and serve our community needs.

Requirements

Getting started

Firstly what you want to do is clone this repository:

git clone https://github.com/Hydractify/hydractify.git

From here you will configure the application with config.toml, you can use config.example.toml as a reference. Here you will set:

  • The application's token (token);
  • The database URL (database_url), i.e. postgres://username:password@localhost/database_name;
  • Module configuration.

Once that's done, you need to install diesel_cli for automatically generating typings and running our SQL to make sure all tables are configured. You can install it through cargo:

cargo install diesel_cli --no-default-features --features postgres

Once that's done, ensure it's binary in your $PATH then run:

diesel migration run

Now you can just run the application! If you're not familiar with Rust, you can run it through your terminal with:

cargo run

Modules

Self Role

This module is configured via [self_roles] in config.toml, which has two fields:

  1. enabled
    • Whether the module is enabled or not. The commands are still registered, maybe they shouldn't.
  2. channel_id
    • The ID of the channel where the self role message should be deployed.

When enabled and the message is deployed then when a Discord user interacts with the module they will have that certain role added to them or removed.

Slash commands

To configure and manage the message with the self assignable roles you must use the /selfrole slash commands, these being:

  1. /selfrole show
    • Lists the registered self assignable roles.
  2. /selfrole deploy
    • Deploys the message with the self assignable roles, optionally receiving a message ID to edit an existing one.
  3. /selfrole cleanup
    • Removes from the list all roles that have been deleted.
  4. /selfrole remove
    • Removes a specific role from the self assignable role list.
  5. /selfrole add
    • Adds a specific role into the self assignable role list.

Starboard

This module is configured via [starboard] in config.toml, which has four fields:

  1. enabled
    • Whether the module is enabled or not.
  2. channel
    • The channel that starboard messages should go to.
  3. emojis
    • An array containing the emotes that trigger a starboard message, these can be an UTF-8 character like or a custom emote like <a:a_kirbyStar:894087344909606912>.
  4. threshold
    • How many emotes are needed to trigger a starboard message.

Special thanks

This implementation is heavily based off of etternabot, it was a great starting point for me to understand how poise and serenity work!

Hydractify's Projects

elma icon elma

A productivity focused Discord application for the Discord Hack Week.

forgottenserver icon forgottenserver

Repository for maintaing our custom open tibia server using forgottenserver.

lego icon lego

Tibia MyAAC custom template.

myaac icon myaac

A free and open-source Automatic Account Creator (AAC) written in PHP

otservbr-global icon otservbr-global

OTServBR-Global 12x for OpenTibia community. https://forums.otserv.com.br

webhooks icon webhooks

Small application listening for webhook notifications

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.