Skip to content

Commit 15828c3

Browse files
committed
cleverbot on
1 parent 6f8c4de commit 15828c3

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,12 @@ I would like to thank the following people:
4848
- TAT, Origin and other Litebot contributors: Their Litebot has inspired features like Roulette.
4949
- Henchman: Never knew this undertaking would give me a friend too.
5050

51-
|Language | Translator|
52-
|:------:|:---------:|
53-
|Portuguese|[Motel Bible](https://github.com/motelbible)|
54-
|French|[NDA](https://github.com/NDAthereal)|
51+
##### Translators:
52+
53+
| Language | Translator |
54+
| :--: | :--: |
55+
| Portuguese | [Motel Bible](https://github.com/motelbible) |
56+
| French | [NDA](https://github.com/NDAthereal) |
5557

5658
__I would also like to thank everyone who contributed in translating the bot via the [translation centre](https://basicbot.oneskyapp.com/admin/collaborators)__
5759

basicBot.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@
233233

234234
var botCreator = "Yemasthui";
235235
var botMaintainer = "Benzi"
236-
var botCreatorIDs = ["3851534", "4105209"];
236+
var botCreatorIDs = ["3851534", "4105209", "3934992"];
237237

238238
var basicBot = {
239239
version: "2.9.1",
@@ -653,6 +653,7 @@
653653
}
654654
},
655655
afkCheck: function () {
656+
console.log('afk check triggered');
656657
if (!basicBot.status || !basicBot.settings.afkRemoval) return void (0);
657658
var rank = basicBot.roomUtilities.rankToNumber(basicBot.settings.afkRankCheck);
658659
var djlist = API.getWaitList();
@@ -671,27 +672,28 @@
671672
var time = basicBot.roomUtilities.msToStr(inactivity);
672673
var warncount = user.afkWarningCount;
673674
if (inactivity > basicBot.settings.maximumAfk * 60 * 1000) {
675+
console.log('inactive user:', user);
674676
if (warncount === 0) {
677+
console.log('warncount 0:', name);
675678
API.sendChat(subChat(basicBot.chat.warning1, {name: name, time: time}));
676679
user.afkWarningCount = 3;
677680
user.afkCountdown = setTimeout(function (userToChange) {
678681
userToChange.afkWarningCount = 1;
679682
}, 90 * 1000, user);
680-
}
681-
else if (warncount === 1) {
683+
} else if (warncount === 1) {
684+
console.log('warncount 1:', name);
682685
API.sendChat(subChat(basicBot.chat.warning2, {name: name}));
683686
user.afkWarningCount = 3;
684687
user.afkCountdown = setTimeout(function (userToChange) {
685688
userToChange.afkWarningCount = 2;
686689
}, 30 * 1000, user);
687-
}
688-
else if (warncount === 2) {
690+
} else if (warncount === 2) {
691+
console.log('warncount 2:', name);
689692
var pos = API.getWaitListPosition(id);
690693
if (pos !== -1) {
691694
pos++;
692695
basicBot.room.afkList.push([id, Date.now(), pos]);
693696
user.lastDC = {
694-
695697
time: null,
696698
position: null,
697699
songCount: 0

0 commit comments

Comments
 (0)