-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add README, and also add UUIDs to SpecialEventsManager
- Loading branch information
Showing
18 changed files
with
119 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# dkim19375JDAUtils | ||
A kotlin library for JDA to help to make discord bots easier! | ||
|
||
**WARNING! UPDATES MAY INCLUDE API BREAKING CHANGES! | ||
THE API IS STILL VERY NEW, RESULTING IN FREQUENT CHANGES** | ||
|
||
### An example of using this library is with my bot UniG0 - https://github.com/dkim19375/UniG0 | ||
|
||
**NOTE: This might not be up-to-date, if these code snippets don't | ||
work, please notify me!** | ||
|
||
## Adding the dependency | ||
```groovy | ||
repositories { | ||
maven { url = 'https://jitpack.io' } | ||
} | ||
dependencies { | ||
implementation 'com.github.dkim19375:dkim19375JDAUtils:VERSION' | ||
} | ||
``` | ||
|
||
## Setting up the bot | ||
A class, that holds information such as the commands, needs to be | ||
created. It extends `me.dkim19375.dkim19375JDAUtils.BotBase`. | ||
To start the bot, you call BotBase#onStart. | ||
It is recommended to make this your main class. | ||
```kotlin | ||
import me.dkim19375.dkim19375jdautils.BotBase | ||
|
||
class Bot : BotBase() { | ||
override val name = "Bot-Name" | ||
override val token = "token-here" | ||
|
||
init { | ||
onStart() | ||
} | ||
|
||
override fun getPrefix(guild: String): String { | ||
return "!" | ||
} | ||
} | ||
``` | ||
Now, you can simply run the bot, invite the bot to a server, | ||
then run `!help`! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.