GithubHelp home page GithubHelp logo

hevav / tchubbak Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 119 KB

Powerful Open-Source Module-Based Music/Moderation bot for Discord

Home Page: https://hevav.dev/tchubbak

License: GNU General Public License v3.0

Dockerfile 0.16% Java 99.84%
music moderation-bot discord voice-recognition

tchubbak's Introduction

TchuBBak License: GPL v3 Discord

Powerful Open-Source Module-Based Music/Moderation bot for Discord. Current version: v2.0.0
Invite bot to your server
Rate on top.gg

Current modules

  • Moderation - moderation features like (temp/perm) warn, mute, ban
  • Help - shows help page
  • Voice - allows multiplugin voice, voice recognition
  • Music - plays music from YouTube, SoundCloud, Twitch and more
  • Status - shows debug info

Languages

TchuBBak is multilingual bot, and you can help to add more languages(by modifying dev.hevav.tchubbot.i18n.strings). Now TchuBBak is translated to these languages:

  • Russian
  • English
  • Brazilian
  • Indian
  • Japanese
  • Chinese

Requirements

  • Docker
  • Google speech-to-text API file
  • MongoDB server
  • Discord token
  • YouTube Data API token

Installation

To run TchuBBak in production, it is recommended to use Docker. Just pull TchuBBak image from Docker Hub and run it with command:

 $ docker run --env pf_bot_token={{Discord bot token}} --env pf_yt_token={{YouTube Data API token}} --env pf_bot_prefix={{Modules commands prefix}} hevavdev/pfbot:latest

You can also use jar file from releases:

 $ java -jar TchuBBak.jar bot_token={{Discord bot token}} yt_token={{YouTube Data API token}} bot_token={{Modules commands prefix}} 

Logging

Use pf_log_level env variable in docker or log_level= in jar. You can set TRACE, DEBUG, INFO, WARN, ERROR and FATAL log level. Default is INFO.

Writing modules/plugins

Basic module

  • Make a class that extends dev.hevav.tchubbot.modules.Module
  • Add module to dev.hevav.tchubbot.Config.modules
  • Profit

Basic plugin

Plugins are not supported yet.

Localization

TchuBBak has a LocalizedString class, which translates Strings by guild's region. It supports Russian, English, Brazilian, Indian, Japanese and Chinese language.

Embeds

TchuBBak has a EmbedHelper class, which makes modules' response in TchuBBak style.

Voice

TchuBBak has a VoiceAdapter class to change AudioHandlers (temp/perm)

Todo:

  • Remove hardcode from Module(move onMessage and onVoice to Triggers)
  • Simplify Music module

Used libraries

Thanks to

tchubbak's People

Contributors

hevav avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

codacy-badger

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.