mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-20 12:29:23 +01:00
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:
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user