A simple Discord bot made by Snowleopard using the Discord4J framework.
- From project root build with Maven via
mvn clean install
- Copy
target/SnowBot-1.0.0-spring-boot.jar
to desired location
The bot can be run from an IDE (such as Eclipse) via main class lt.owo.snowbot.SnowBot
. Be sure to setup settings.json
in the project root first.
- Create
settings.json
in the same directory asSnowBot-1.0.0-spring-boot.jar
- Start from
settings-example.json
and update values - If you want
data_location
to be in a folder create the folder (required) - You can look at the examples in
data/
and create any of them if you don't want to start fresh (optional)
- Start from
cd
to the directory and runjava -jar SnowBot-1.0.0-spring-boot.jar
Description of each item in settings.json
:
- command_prefix
- Prefix to use in Discord when calling commands, ex:
!
for!ping
- Prefix to use in Discord when calling commands, ex:
- bot_auth_token
- Bot Authorization token from Discord, see the Dev Portal
- owner_id
- This is your Discord ID and is used to prevent admins from removing you as admin via
deladm
command - To find yours right click your name in discord and select
Copy ID
(it will be a long number)
- This is your Discord ID and is used to prevent admins from removing you as admin via
- data_location.commands
- Location for your commands csv file to be saved, see
data/commandList-example.csv
- Location for your commands csv file to be saved, see
- data_location.admins
- Location for your admins csv file to be saved, see
data/adminList-example.csv
(you should add your owner_id here too)
- Location for your admins csv file to be saved, see
- data_location.status
- Location to save the last status you set for the bot so it uses it again if restarted (Listening to ___)
- See
data/laststat-example.txt