The Best Na'vi Dictionary as a discord Bot.
To get the usage, write $help
to the bot.
This option is mostly for Contributors and Developers. Or people who like to compile stuff themselves. You will need the GO Programming Language and Git installed.
We are using go modules so no GOPATH setup is needed.
To compile the bot simply run:
cd ~/wherever/you/want
git clone https://github.com/fwew/discord-bot
cd discord-bot
go build ./...
The discord bot token has to be placed in conf.json. Just copy the conf.json.example as conf.json and place your token as value of the token field.
After these steps you have an executable, that can be run directly, for the operating system your currently on.
To run the Bot correctly, you have to put the dictionary.txt
file in one of the following directories:
.
(next to the executable)./.fwew/
(into a .fwew directory, next to the executable)~/.fwew/
(into a .fwew directory in the home dir.)
Dictionary can be downloaded from the main repository or from tireas Learnnavi page
To cross compile:
GOOS=darwin go build -o bin/mac/fwew_mac ./...
GOOS=linux go build -o bin/linux/fwew_linux ./...
GOOS=windows go build -o bin/windows/fwew_windows.exe ./...
The bot by itself will create anonymized statistics, about each call to the bot inside the statistics directory. These statistics only save, what Parameters were used per command. Each command has its own file where it is saved. The statistics directory will automatically be created next to the executable.