mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-16 15:57:54 +02:00
Beep
This commit is contained in:
@@ -19,7 +19,7 @@ module.exports = class AkinatorCommand extends Command {
|
|||||||
if (this.sessions.has(msg.channel.id)) return msg.say('Only one game may be occuring per channel.');
|
if (this.sessions.has(msg.channel.id)) return msg.say('Only one game may be occuring per channel.');
|
||||||
try {
|
try {
|
||||||
let ans = null;
|
let ans = null;
|
||||||
this.sessions.set(msg.channel.id, { progress: null });
|
this.sessions.set(msg.channel.id, { progress: null });
|
||||||
while (this.sessions.get(msg.channel.id).progress < 99) {
|
while (this.sessions.get(msg.channel.id).progress < 99) {
|
||||||
const data = ans === null ? await this.createSession(msg.channel) : await this.progress(msg.channel, ans);
|
const data = ans === null ? await this.createSession(msg.channel) : await this.progress(msg.channel, ans);
|
||||||
if (this.sessions.get(msg.channel.id).step >= 80) break;
|
if (this.sessions.get(msg.channel.id).step >= 80) break;
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "xiaobot",
|
"name": "xiaobot",
|
||||||
"version": "41.1.1",
|
"version": "41.1.2",
|
||||||
"description": "Your personal server companion.",
|
"description": "Your personal server companion.",
|
||||||
"main": "Shard.js",
|
"main": "Shard.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
Reference in New Issue
Block a user