xTVaser / sr_discord_bot

Discord bot specialising in supporting speedrunning related chat rooms

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Command - Removal of Games

xTVaser opened this issue · comments

!removegame <id/alias>

Changed mind, I believe this command should go through the tracked runner objects and delete the respective games.

This can be easily be done by pulling the entire database, and converting all results back into the model objects with this function https://github.com/xTVaser/sr_discord_bot/blob/master/lib/db/psql_database.rb#L83

This function can then be used to update the runner objects back into the database (not tested yet throughly though) https://github.com/xTVaser/sr_discord_bot/blob/master/lib/db/psql_database.rb#L101