Fix lint (2)

This commit is contained in:
DjDeveloperr 2020-11-07 08:23:42 +05:30
parent 7ead2c2ea6
commit 2f560d72e7
6 changed files with 36 additions and 26 deletions

View file

@ -16,23 +16,23 @@ client.on("messageCreate", (msg: Message) => {
console.log("discord.deno - ping example");
const token = prompt("Input Bot Token:");
if (!token) {
if (token === null) {
console.log("No token provided");
Deno.exit();
}
const intents = prompt("Input Intents (0 = All, 1 = Presence, 2 = Server Members, 3 = None):");
if (!intents || !["0", "1", "2", "3"].includes(intents)) {
if (intents === null || !["0", "1", "2", "3"].includes(intents)) {
console.log("No intents provided");
Deno.exit();
}
let ints;
if (intents == "0") {
if (intents === "0") {
ints = Intents.All;
} else if (intents == "1") {
} else if (intents === "1") {
ints = Intents.Presence;
} else if (intents == "2") {
} else if (intents === "2") {
ints = Intents.GuildMembers;
} else {
ints = Intents.None;