Corby is a bot that aims to log any events that occur in your discord server and to moderate it, I am open to any of your pool requests
Right now in active development!
Here you can find instructions for use
You can find the commands my bot supports on this web page.
You can install and run my bot on your machine and use it for your own purposes, for this you need to create a configuration file named config.json
.
Then fill it in according to the following template:
{
"token": "",
"botPrefixDefault": "",
"ownerId": "",
"defaultCooldownSeconds": "",
"emoteTrash": "",
"emoteStar": "",
"emoteWhiteCheckMark": "",
"defaultStarboardStars": "",
"defaultStarboardIsEnabled": "",
"helpPageUrl": ""
}
token
- your bot token
bot_prefx_default
- bot prefix
ownerId
- your discord id
default_cooldowm_seconds
- User cannot use more than one command at this time
emoteTrash
- emote of waste bascket (unicode)
emoteStar
- emote of star (unicode)
emoteWhiteCheckMark
- emote of white check mark (unicode)
defaultStarboardStars
- the number of stars required for a message to appear on the starboard
defaultStarboardIsEnabled
- (boolean) default toggle for the starboard on the server
helpPageUrl
- link to the page with information about commands
{
"token": "aaaaaaaaaaaaabbbbbbbbbccccccccccccccccdddddd",
"botPrefixDefault": "!",
"ownerId": "111111111111111111",
"defaultCooldownSeconds": "2",
"emoteTrash": "\uD83D\uDDD1",
"emoteStar": "⭐",
"emoteWhiteCheckMark": "✅",
"defaultStarboardStars": "3",
"defaultStarboardIsEnabled": "false",
"helpPageUrl": "https://d1snin.xyz/corby/"
}
The next step you need to create a database and execute a script for this database to make it work for the bot and add the database file with the extension .db
along the path corby/src/main/resources/corby.db
.
It must have a name corby.db
as shown above.
You can create an empty database via Intellij IDEA. Click on this tab
Now click on "+" to create a new database, then hover mouse over Data Source and select SQLite database.
Now fill in the required fields as shown below.
Follow this path scripts/setupdb.sql
and copy the content of the script and paste it into the field to execute the request and click Execute
. Move the database file along the path corby/src/main/resources
.
Then you can start the bot with the command ./gradlew run
.
I am open to any pull requests, just clone the repository and import gradle project. Please observe Google Java Style Guide. Also make sure you test your changes to work.