Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions NerdiikBot.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
var loadChat = function (cb) {
if (!cb) cb = function () {
};
$.get("https://rawgit.com/Repiboy/NerdiikBot/master/lang/cz", function (json) {
$.get("https://cdn.jsdelivr.net/gh/Repiboy/NerdiikBot/lang/cz", function (json) {
var link = basicBot.chatLink;
if (json !== null && typeof json !== "undefined") {
langIndex = json;
Expand Down Expand Up @@ -240,18 +240,18 @@
status: false,
name: "SHŽ Bot",
loggedInID: null,
scriptLink: "https://rawgit.com/basicBot/source/master/basicBot.js",
scriptLink: "https://cdn.jsdelivr.net/gh/basicBot/source/basicBot.js",
cmdLink: "http://tinyurl.com/zklf23k",
chatLink: "https://rawgit.com/Repiboy/NerdiikBot/master/NerdiikBotczech.json",
chatLink: "https://cdn.jsdelivr.net/gh/Repiboy/NerdiikBot/NerdiikBotczech.json",
chat: null,
loadChat: loadChat,
retrieveSettings: retrieveSettings,
retrieveFromStorage: retrieveFromStorage,
settings: {
botName: "SHŽ Bot",
language: "czech",
chatLink: "https://rawgit.com/Repiboy/NerdiikBot/master/NerdiikBotczech.json",
scriptLink: "https://rawgit.com/basicBot/source/master/basicBot.js",
chatLink: "https://cdn.jsdelivr.net/gh/Repiboy/NerdiikBot/NerdiikBotczech.json",
scriptLink: "https://cdn.jsdelivr.net/gh/basicBot/source/basicBot.js",
roomLock: false, // Requires an extension to re-load the script
startupCap: 100, // 1-200
startupVolume: 50, // 0-100
Expand Down Expand Up @@ -309,9 +309,9 @@
songstats: false,
commandLiteral: "!",
blacklists: {
NSFW: "https://rawgit.com/Repiboy/NerdiikBot/master/NSFW.json",
OP: "https://rawgit.com/basicBot/custom/master/blacklists/OPlist.json",
BANNED: "https://rawgit.com/basicBot/custom/master/blacklists/BANNEDlist.json"
NSFW: "https://cdn.jsdelivr.net/gh/Repiboy/NerdiikBot/NSFW.json",
OP: "https://cdn.jsdelivr.net/gh/basicBot/custom/blacklists/OPlist.json",
BANNED: "https://cdn.jsdelivr.net/gh/basicBot/custom/blacklists/BANNEDlist.json"
}
},
room: {
Expand Down Expand Up @@ -2887,7 +2887,7 @@ sklepCommand: {
if (msg.length <= cmd.length + 1) return API.sendChat(subChat(basicBot.chat.currentlang, {language: basicBot.settings.language}));
var argument = msg.substring(cmd.length + 1);

$.get("https://rawgit.com/basicBot/source/master/lang/langIndex.json", function (json) {
$.get("https://cdn.jsdelivr.net/gh/basicBot/source/lang/langIndex.json", function (json) {
var langIndex = json;
var link = langIndex[argument.toLowerCase()];
if (typeof link === "undefined") {
Expand Down
2 changes: 1 addition & 1 deletion lang/cz
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"czech": "https://rawgit.com/Repiboy/NerdiikBot/master/NerdiikBotczech.json"
"czech": "https://cdn.jsdelivr.net/gh/Repiboy/NerdiikBot/NerdiikBotczech.json"
}