Coder Social home page Coder Social logo

kyro3400 / sushii-bot Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sushiibot/sushii-bot

0.0 0.0 0.0 1.49 MB

๐Ÿฃ A Discord chat bot with a ranking system, moderation tools, and more.

Home Page: https://sushii.xyz

License: ISC License

Rust 95.58% PLpgSQL 0.27% HTML 4.11% Shell 0.04%

sushii-bot's Introduction

Build Status Build Status

โš  sushii bot is no longer active or maintained, see sushii 2 for the rewrite.

sushii bot

sushii

A Discord bot written in Rust with serenity-rs. Uses a PostgreSQL database along with diesel-rs and r2d2-diesel.

Work in progress. Features may be either missing, incomplete, or broken. sushii is not designed to be self hosted and likely won't ever be, no support will be offered unless you are making a pull request.

Disclaimer: sushii was started as a project to learn Rust so there is definitely a lot of questionable things in the code. A major refactor to clean up and organize the code is planned but probably won't happen anytime soon. Read at your own risk.

Features

  • Ranking system based on message counts in daily, weekly, monthly, and all time categories
  • User 24 hour activity tracker
  • Profile image generation for displaying rank and activity graph (with sushii-image-server)
  • sushiiboard (starboard)
  • Configurable self assigning role system with multiple categories and limits
  • Configurable prefix per guild
  • Moderation action logs and editable action reasons
  • Mute evasion prevention
  • Mass mention auto-mutes
  • User created tags (custom commands-ish)
  • Channel galleries (sends links & images from a channel to a webhook)
  • Reminders
  • Keyword notifications
  • User join and leave messages
  • Rust playground code execution
  • Discord events counter
  • ...and more to be added

Installation

  1. Download the latest version from the releases page or the download an artifact on Azure Pipelines, currently only supporting Linux. Sushii should work on Windows and other platforms but it is untested and unsupported.

  2. Allow the file to be executed.

    chmod +x x86_64-unknown-linux-gnu
  3. Create an .env file in the same directory and update according to .env.example. All variables must exist except for BLOCKED_USERS or the bot will panic.

  4. Run with ./x86_64-unknown-linux-gnu or with a process manager like Supervisor.

Building from Source

  1. Install dependencies.
  2. Clone this repository and enter the directory.
    git clone https://github.com/drklee3/sushii-bot.git
    cd sushii-bot
  3. Edit .env.example and rename to .env. Removing any key or leaving them blank will result in panics.
  4. Build and run the bot.
    cargo run --release

sushii-bot's People

Contributors

azure-pipelines[bot] avatar drklee3 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.