GithubHelp home page GithubHelp logo

fear-my-bot's Introduction

fear-my-bot

Fear-My-Bot is a relatively basic framework for a Discord bot using Luvit and Discordia! Its main purpose is to act as a main place to provide bot-agonostic upgrades to the multiple bots I run and isn't really designed for anyone but myself. As a result, this file is rather short and doesn't go into many details.

Why?

I run two discord bots with a few hundred users being served by both bots. One of them is a fullly fledged moderation bot and the other is a less serious bot, complete with puns. While maintaining these bots, a few issues became apparent:

  • I had gotten much better at programming since I'd first started.
  • One of them was on a much older version of Luvit and Discordia.
  • Feature creep had gotten hold of them.
  • They had diverged in design and features, making them a pain to maintain together.

With all those in mind, I decided to write a simple framework for Discord bots, both as practice and so that I could port the two bots to it. That framework is this.

Notable Features

  • Modular commands - All commands are isolated to their own files and are loaded when the bot initializes. You can just plop a new one in with no problems.
  • Simple yet powerful permissions - By allowing permissions to be granular and be both per role and user, and per command, server admins are able to pick and choose what commands they want a user to be able to use.
  • Error tolerant - If a command throws, it won't bring the entire bot down and instead the bot owner will be notified.
  • Easy to configure - Changing settings for the bot is easy and servers each have their own settings file that can be manually adjusted (or adjusted with a command).
  • Hooks - Events managed by the bot can be intercepted while initializing the bot

Potential Issues

The restart command uses a combination of os.execute, jit.os, and guesswork to restart the bot. If your OS has a better way to spawn a new process, feel free to contribute it, otherwise, you'll just have to make do. I test on Windows.

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.