mirror of
https://github.com/ChomeNS/chomens-bot-mc.git
synced 2025-03-24 10:59:43 -04:00
wiki
This commit is contained in:
parent
a86400ae67
commit
25376e3e3b
2 changed files with 3 additions and 2 deletions
|
@ -5,6 +5,7 @@ const {MessageEmbed} = require('discord.js');
|
|||
module.exports = {
|
||||
name: 'wikipedia',
|
||||
alias: ['wiki'],
|
||||
description: 'Working Wikipedia!',
|
||||
usage: '<anything>',
|
||||
trusted: 0,
|
||||
execute: async function(bot, username, usernameraw, sender, prefix, args) {
|
||||
|
|
4
index.js
4
index.js
|
@ -154,7 +154,7 @@ function main() {
|
|||
// allink's chat queue
|
||||
chatQueue = setInterval(function() {
|
||||
try {
|
||||
if (bot.queue[0]) {
|
||||
if (bot.queue[0] || bot.queue[0]==='') {
|
||||
try {
|
||||
if (containsIllegalCharacters(bot.queue[0])) {
|
||||
bot.queue.shift();
|
||||
|
@ -389,7 +389,7 @@ function main() {
|
|||
console.log(`Disconnected (${event} event): ${util.inspect(reason)}`);
|
||||
channel.send(`Disconnected (${event} event): ${util.inspect(reason)}`);
|
||||
|
||||
let timeout = 1000;
|
||||
let timeout = 3500;
|
||||
|
||||
try {
|
||||
if (reason.text) {
|
||||
|
|
Loading…
Add table
Reference in a new issue