danthe1st / DanBot1

A small, pluginable Discord Bot

Home Page:https://danthe1st.github.io/DanBot1/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DanBot1 Build Status

a little, pluginable Discord Chat Bot.
For a list of Commands and standard-permissions visit https://danthe1st.github.io/DanBot1

Program your own Plugins:

An example for creating Plugins for DanBot1 can be found here

  • 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):
<dependencies>
	<dependency>
		<groupId>io.github.danthe1st</groupId>
		<artifactId>DanBot1</artifactId>
		<version>VERSION</version>
		<scope>provided</scope>
	</dependency>
</dependencies>
  • if you use IntelliJ, make sure to tick Include dependencies with "Provided" scope in your run configuration. include provided dependencies
  • 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.

About

A small, pluginable Discord Bot

https://danthe1st.github.io/DanBot1/

License:GNU General Public License v3.0


Languages

Language:Java 99.9%Language:Shell 0.1%