Changes the discord bot into a subsystem and adds quite a bit of additional logging (#17996)

* Changes the discord bot into a subsystem and adds quite a bit of additional logging

* Removes a forgotten todo

* replaces call with RUSTG_CALL (to make it compile) and adds a comment

* Re-Add log prefix

---------

Co-authored-by: Werner <Arrow768@users.noreply.github.com>
This commit is contained in:
Werner
2023-12-19 23:54:57 +01:00
committed by GitHub
parent d0ca24467e
commit 3daec39efa
27 changed files with 219 additions and 135 deletions
@@ -24,7 +24,7 @@
response = "Orders have been placed. Use force parameter to overwrite."
return TRUE
// Update discord_bot's channels.
// Update SSdiscord's channels.
/datum/topic_command/update_bot_channels
name = "update_bot_channels"
description = "Tells the ingame instance of the Discord bot to update its cached channels list."
@@ -32,12 +32,12 @@
/datum/topic_command/update_bot_channels/run_command()
data = null
if (!discord_bot)
if (!SSdiscord)
statuscode = 404
response = "Ingame Discord bot not initialized."
return 1
switch (discord_bot.update_channels())
switch (SSdiscord.update_channels())
if (1)
statuscode = 404
response = "Ingame Discord bot is not active."