added titles to configs

This commit is contained in:
liyunze
2023-08-10 13:03:23 +08:00
parent 3abeba7b57
commit 2fa7c5b4fc
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -230,6 +230,8 @@ const configs = (function () {
"{user} RyanPython is the creator of this bot, check out his Twitch at https://www.twitch.tv/ryanpython",
};
const titles = ["!ryanpython", "!taskadd", "!taskdone", "!taskhelp"];
// Other
const styles = {
headerFontFamily,
@@ -345,6 +347,7 @@ const configs = (function () {
commands,
responses,
settings,
titles,
};
return module;
+1 -1
View File
@@ -535,7 +535,7 @@ setInterval(async () => {
let taskTitleText = taskTitle.innerText;
// cycle through a list of titles
let titles = ["!ryanpython", "!taskadd", "!taskdone", "!taskhelp"];
const titles = configs.titles;
// get current title
let currentTitle = titles.indexOf(taskTitleText);