Git Product home page Git Product logo

piririca's Introduction

Piririca Bot

An open, reliable, modular and "Plug & Play" discord bot

Developed with modularity in mind, Piririca achieves an simple but extensive way to create a bot with a lot of features. It comes out of the box with hot-reloading commands/events, as well with a some commands and events to serve as a template for your own commands and events.

Interacting with Voice Channels is also possible, though it is still in alpha, so have that in mind.

Configuration

  1. Clone the repository

  2. Install the dependencies (We use pnpm!)

  3. Build the bot with pnpm build

  4. Run the bot with pnpm start

The bot will ask for some information like your token, app id, commands/events folder path, bot status, bot activity, if you want to enable hot-reloading, etc. The bot will then create a config file and start.

Commands / Events

Commands

The default folder path for commands is src/cmd, you can change it by editing the config file or not skipping it on the configuration step.

To create a new command, execute on a terminal pnpm create command <command-name>

Every file in the folder represents a slash command on the bot, and its file name translates to the command name.

Events

The default folder path for events is src/event, you can change it by editing the config file or not skipping it on the configuration step.

To create a new event, execute on a terminal pnpm create event <event-name>

Every file in the folder represents an event on the bot, and its file name translates to the event name. Also, the events names comes from the discord.js library. You can see a full list of the events names here

The modularity part

Now let's see some strange setups that are possible with Piririca. Let's say you want to create multiple instances of a bot (or even different ones). The only thing you need to do is copy and change some things on the index.ts and done! You can have infinite sets of bots with infinite sets of commands and events

Contributing

To contribute, you can create an issue explaning a bug you encontered or a feature you want to see. Also, you can create a pull request to add a new feature or fix a bug, or even create new default commands.

piririca's People

Contributors

ar7hurz1nh0 avatar

Watchers

 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.