belguawhale / Discord-Werewolf

A discord bot that runs a game of Werewolf.
MIT License
81 stars 52 forks source link

Refresh command and pulling languages from GitHub #3

Closed haykam821 closed 7 years ago

haykam821 commented 7 years ago

This update adds the refresh command, which takes an optional parameter language_code. Here's an example usage:

!refresh original_en

This would get the original_en.json file from Discord-Werewolf-Languages and load it into lang.

It's optional, but if not added, it defaults to reloading MESSAGE_LANGUAGE from your settings file. If you put a random string that isn't a language in languages.json from the repo in the parameters or MESSAGE_LANGUAGE, it will default to en.json.

The startup load also gets it from GitHub, and the old lang folder and its contents have been deleted because of this.

haykam821 commented 7 years ago

No longer needed as I manually merged it.