remove console.log

This commit is contained in:
Neko-Life 2021-07-29 16:52:03 +07:00
parent 671712659e
commit 12e0699014
2 changed files with 2 additions and 9 deletions

View file

@ -30,13 +30,10 @@ module.exports = class lookup extends commando.Command {
}
arg = arg.replace(/(?<!\\)--s +\d+/, "").trim();
const args = arg.split(/ +/);
console.log(args);
let [fetchedMember, fetchedRoles, fetchedChannels, memMes] = [[], [], [], ""];
const lowCaseArg0 = args[0];
if (lowCaseArg0.startsWith("--hr")) {
console.log("HR");
if (args[1]) {
console.log("ARGS[1]");
const cleanRoleID = cleanMentionID(arg.slice("--hr ".length).trim());
if (/^\d{17,19}$/.test(cleanRoleID)) {
fetchedRoles.push(msg.guild.roles.cache.get(cleanRoleID));

View file

@ -186,10 +186,8 @@ async function trySend(client, msgOrChannel, content, checkAd = true) {
}*/
if (!client || !msgOrChannel || !content) return;
if (typeof msgOrChannel === "string") msgOrChannel = client.channels.cache.get(msgOrChannel);
if (!client.user.typingIn(msgOrChannel.channel || msgOrChannel)) {
console.log("STARTING TYPING");
if (!client.user.typingIn(msgOrChannel.channel || msgOrChannel))
(msgOrChannel.channel || msgOrChannel).startTyping();
}
if (client.owners.includes(msgOrChannel.author)) {
checkAd = false;
if (content.disableMentions) content.disableMentions = "none";
@ -210,10 +208,8 @@ async function trySend(client, msgOrChannel, content, checkAd = true) {
}
}, 2000);
setTimeout(() => {
if (client.user.typingIn(msgOrChannel.channel || msgOrChannel)) {
console.log("STOPPING TYPING");
if (client.user.typingIn(msgOrChannel.channel || msgOrChannel))
(msgOrChannel.channel || msgOrChannel).stopTyping();
}
}, 5000);
return ret;
}