mirror of
https://github.com/danbulant/Shasha
synced 2026-07-05 02:50:49 +00:00
remove console.log
This commit is contained in:
parent
671712659e
commit
12e0699014
2 changed files with 2 additions and 9 deletions
|
|
@ -30,13 +30,10 @@ module.exports = class lookup extends commando.Command {
|
||||||
}
|
}
|
||||||
arg = arg.replace(/(?<!\\)--s +\d+/, "").trim();
|
arg = arg.replace(/(?<!\\)--s +\d+/, "").trim();
|
||||||
const args = arg.split(/ +/);
|
const args = arg.split(/ +/);
|
||||||
console.log(args);
|
|
||||||
let [fetchedMember, fetchedRoles, fetchedChannels, memMes] = [[], [], [], ""];
|
let [fetchedMember, fetchedRoles, fetchedChannels, memMes] = [[], [], [], ""];
|
||||||
const lowCaseArg0 = args[0];
|
const lowCaseArg0 = args[0];
|
||||||
if (lowCaseArg0.startsWith("--hr")) {
|
if (lowCaseArg0.startsWith("--hr")) {
|
||||||
console.log("HR");
|
|
||||||
if (args[1]) {
|
if (args[1]) {
|
||||||
console.log("ARGS[1]");
|
|
||||||
const cleanRoleID = cleanMentionID(arg.slice("--hr ".length).trim());
|
const cleanRoleID = cleanMentionID(arg.slice("--hr ".length).trim());
|
||||||
if (/^\d{17,19}$/.test(cleanRoleID)) {
|
if (/^\d{17,19}$/.test(cleanRoleID)) {
|
||||||
fetchedRoles.push(msg.guild.roles.cache.get(cleanRoleID));
|
fetchedRoles.push(msg.guild.roles.cache.get(cleanRoleID));
|
||||||
|
|
|
||||||
|
|
@ -186,10 +186,8 @@ async function trySend(client, msgOrChannel, content, checkAd = true) {
|
||||||
}*/
|
}*/
|
||||||
if (!client || !msgOrChannel || !content) return;
|
if (!client || !msgOrChannel || !content) return;
|
||||||
if (typeof msgOrChannel === "string") msgOrChannel = client.channels.cache.get(msgOrChannel);
|
if (typeof msgOrChannel === "string") msgOrChannel = client.channels.cache.get(msgOrChannel);
|
||||||
if (!client.user.typingIn(msgOrChannel.channel || msgOrChannel)) {
|
if (!client.user.typingIn(msgOrChannel.channel || msgOrChannel))
|
||||||
console.log("STARTING TYPING");
|
|
||||||
(msgOrChannel.channel || msgOrChannel).startTyping();
|
(msgOrChannel.channel || msgOrChannel).startTyping();
|
||||||
}
|
|
||||||
if (client.owners.includes(msgOrChannel.author)) {
|
if (client.owners.includes(msgOrChannel.author)) {
|
||||||
checkAd = false;
|
checkAd = false;
|
||||||
if (content.disableMentions) content.disableMentions = "none";
|
if (content.disableMentions) content.disableMentions = "none";
|
||||||
|
|
@ -210,10 +208,8 @@ async function trySend(client, msgOrChannel, content, checkAd = true) {
|
||||||
}
|
}
|
||||||
}, 2000);
|
}, 2000);
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
if (client.user.typingIn(msgOrChannel.channel || msgOrChannel)) {
|
if (client.user.typingIn(msgOrChannel.channel || msgOrChannel))
|
||||||
console.log("STOPPING TYPING");
|
|
||||||
(msgOrChannel.channel || msgOrChannel).stopTyping();
|
(msgOrChannel.channel || msgOrChannel).stopTyping();
|
||||||
}
|
|
||||||
}, 5000);
|
}, 5000);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue