posts updates for SWGoH in a discord channel.
requires dotnet runtime & SDK installed to run.
use "dotnet run" from inside the project folder to run the bot.
when the bot asks for a token, you can also enter some commands instead and it will tell the difference between them and an actual token.
List of Token Commands:
notYet - exits the program, this is used for debugging
read - read the token in the currently existing token file (will fuck up if there is no token file)
write - write a new token to the file (kinda broken at the moment, i suggest creating the token file manually)
Creating a token file manually: make a text file called "token.txt" in the project folder and put only the token in it, no whitespace, tabs, returns, newlines, feeds, nothing, just the token.
while the bot is runing, any message sent in a discord channel it can see that starts with "!droid " will be interpretted as a command by the bot. if whatever is typed after that doesn't match with anything in the list of commands, (including any extra whitespaces,) the command will return with a message stating "invalid command" and do nothing.
List of Discord Commands:
ping - returns "pong" (normally used in debugging, but it's cute so i'll keep it in release)
the bot stores a local file called "subject.txt" containing the last found node in the rss. changing it's contents will cause the same update to fire next time the check is initiated unless another update came out between the change and the next check.
every hour, the bot will automatically check the rss for updates, if there is a new update posted, it will update the local rss file and send a message to the channel specified in the source code at line 209.