Closed
Description
Describe the bug
Ideally when setting up bot, it should work with copy paste of config.template
and bot token only. But atm, without entering githubAPI key, none of the other features work.
The root cause seems to be contructors of both GithubCommand.java
and GithubReference.java
, both calls two methods updateCache()
and acquireRespositories()
, but since we havent configured key yet this ends up crashing all other features.
Expected behavior
Other features except /github-search
and GithubReference
should work without githubAPI key.
To Reproduce
- Clone Bot.
- Copy
config.json.template
and create a new file insideapplication
folder namedconfig.json
. - Add discord bot token.
- When bot is live, use
/ping
or any other feature.
Additional context
constructor of GithubCommand