From fc218e16445cbb1637906c9ecd94d657581263e2 Mon Sep 17 00:00:00 2001 From: "Ean Milligan (Bastion)" Date: Sat, 13 Feb 2021 01:59:25 -0500 Subject: [PATCH] V1.4.1 Minor update This is a very minor update. Only things changed are the status now rotates thru a list to promote other commands and show off a little bit. Most files are updated due to version number. --- README.md | 2 +- config.example.ts | 2 +- mod.ts | 9 +++++++-- www/api/index.html | 2 +- www/home/index.html | 2 +- 5 files changed, 11 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 39a10a1..d52603a 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # The Artificer - A Dice Rolling Discord Bot -Version 1.4.0 - 2021/02/13 +Version 1.4.1 - 2021/02/13 The Artificer is a Discord bot that specializes in rolling dice. The bot utilizes the compact [Roll20 formatting](https://roll20.zendesk.com/hc/en-us/articles/360037773133-Dice-Reference) for ease of use and will correctly perform any needed math on the roll (limited to basic algebra). diff --git a/config.example.ts b/config.example.ts index e9f649f..d655e08 100644 --- a/config.example.ts +++ b/config.example.ts @@ -1,6 +1,6 @@ export const config = { "name": "The Artificer", // Name of the bot - "version": "1.4.0", // Version of the bot + "version": "1.4.1", // Version of the bot "token": "the_bot_token", // Discord API Token for this bot "localtoken": "local_testing_token", // Discord API Token for a secondary OPTIONAL testing bot, THIS MUST BE DIFFERENT FROM "token" "prefix": "[[", // Prefix for all commands diff --git a/mod.ts b/mod.ts index 046f3ee..ce50b9a 100644 --- a/mod.ts +++ b/mod.ts @@ -45,7 +45,12 @@ startBot({ eventHandlers: { ready: () => { console.log(`${config.name} Logged in!`); - editBotsStatus(StatusTypes.Online, `${config.prefix}help for commands`, ActivityType.Game); + let statusIdx = 0; + const statusRotation =[`${config.prefix}help for commands`, `Running V${config.version}`, `${config.prefix}info to learn more`, `Rolling dice for ${cache.guilds.size} servers`]; + setInterval(() => { + editBotsStatus(StatusTypes.Online, statusRotation[statusIdx], ActivityType.Game); + statusIdx >= statusRotation.length ? statusIdx = 0 : statusIdx++; + }, 30000); // setTimeout added to make sure the startup message does not error out setTimeout(() => { sendMessage(config.logChannel, `${config.name} has started, running version ${config.version}.`).catch(() => { @@ -183,7 +188,7 @@ startBot({ sendMessage(config.reportChannel, ("USER REPORT:\n" + args.join(" "))).catch(err => { console.error("Failed to send message 50", message, err); }); - utils.sendIndirectMessage(message, "Failed command has been reported to my developer.", sendMessage, sendDirectMessage).catch(err => { + utils.sendIndirectMessage(message, "Failed command has been reported to my developer.\n\nFor more in depth support, and information about planned maintenance, please join the support server here: https://discord.gg/peHASXMZYv", sendMessage, sendDirectMessage).catch(err => { console.error("Failed to send message 51", message, err); }); } diff --git a/www/api/index.html b/www/api/index.html index d7e5ab5..0e61a96 100644 --- a/www/api/index.html +++ b/www/api/index.html @@ -122,7 +122,7 @@ Built by Ean Milligan diff --git a/www/home/index.html b/www/home/index.html index 07b4052..fe071e1 100644 --- a/www/home/index.html +++ b/www/home/index.html @@ -94,7 +94,7 @@ Built by Ean Milligan