Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/danthe1st/danbot1

A small, pluginable Discord Bot
https://github.com/danthe1st/danbot1

discord discord-api discord-bot discord-java java java-8 jda jda-bot jda-discord jda-discord-bot maven

Last synced: 3 days ago
JSON representation

A small, pluginable Discord Bot

Awesome Lists containing this project

README

        

# DanBot1 [![Build Status](https://travis-ci.com/danthe1st/DanBot1.svg?branch=master)](https://travis-ci.com/danthe1st/DanBot1)
a little, pluginable Discord Chat Bot.

For a list of Commands and standard-permissions visit [https://danthe1st.github.io/DanBot1](https://danthe1st.github.io/DanBot1)

Program your own Plugins:

An example for creating Plugins for DanBot1 can be found [here](https://github.com/danthe1st/DanBot1ExamplePlugin)
* Create a new Maven Project
* Make sure that you are using at least Java 8
* add DanBot1 to the Dependencies (replace VERSION with [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.danthe1st/DanBot1/badge.svg)](https://maven-badges.herokuapp.com/maven-central/io.github.danthe1st/DanBot1)):
```xml


io.github.danthe1st
DanBot1
VERSION
provided

```
* if you use *IntelliJ*, make sure to tick `Include dependencies with "Provided" scope` in your run configuration. ![include provided dependencies](./.github/resc/IntelliJtickIncludeProvidedDependencies.png "TODO")
* Commands for the Bot have to be annotated with `@io.github.danthe1st.danbot1.commands.BotCommand`
* Commands should have a no-args-Constructor
* the field *aliases* in `@BotCommand` mean the Command aliases (should be at least one)
* Commands should implement the Interface `io.github.danthe1st.danbot1.commands.Command`
* Listeners should be annotated with `@io.github.danthe1st.danbot1.listeners.BotListener`
* Listeners should have a no-args-Constructor
* Listeners should extend `net.dv8tion.jda.api.hooks.ListenerAdapter`
* You can run the Bot by executing io.github.danthe1st.danbot1.core.Main.main(String[] args);
* you can export the plugin as a normal JAR File or use a maven export(mvn package), but the Commands and Listeners should be accessible and should hava a no-args-Constructor.