Giter VIP home page Giter VIP logo

koply-core's Introduction

Koply Core Async Bot Base

Build Status LICENSE stars

Simple bot base includes CommandHandler and Config system.

How To Create A Command

@CommandName("ping")
@CommandDescription("Pong!")
public class PingCommand extends Command {

    @Override
    public void handle(CommandParameters cmd) {
        cmd.getTextChannel().sendMessage("Pong!").queue();
    }
}

Optionally you can use final class and final handle method. This will be nicer.

@CommandName: Command's name for usage.

@CommandDescription: Command's description for help command.

@OwnerOnly: This command usable for only bot owners.

Config.json Syntax

"prefix": "$": For command prefix.

"token": "INSERT-BOT-TOKEN-HERE": Bot token.

"owners": ["INSERT-YOUR-ID-HERE"]: Bot owner id's.

"cooldown": 5000: Cooldown for regular users. The bot owners are doesn't affect the cooldown.

Group Names And Descriptions

"info": "Bilgilendirme--Bilgi alabileceğiniz komutlar bulunur.": The key named as 'info' for 'info' commands package. The group name is before then '--'. The group description is after then '--'.

"nulldescriptiontext": "Açıklama girilmedi.": This line for non-descriptioned commands.

Versions Changelog

v2.0

* Added file database (json) system.
* Fixing some bugs.

koply-core's People

Contributors

koply avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.