Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ready is not working #1504

Closed
Demon-X14 opened this issue May 11, 2024 · 5 comments
Closed

ready is not working #1504

Demon-X14 opened this issue May 11, 2024 · 5 comments
Labels

Comments

@Demon-X14
Copy link

Demon-X14 commented May 11, 2024

bot.on("ready", () => { 
    console.log("Ready!"); 
});
@bsian03
Copy link
Collaborator

bsian03 commented May 11, 2024

Gonna need more info than that. What's your code look like?

@Demon-X14 Demon-X14 changed the title ready is not wording ready is not working May 11, 2024
@Demon-X14
Copy link
Author

Gonna need more info than that. What's your code look like?

is there a way to make it work with user accounts ?

const Eris = require("eris");
const { url } = require("inspector");
const { type } = require("os");
const bot = new Eris(
  "account token"
);
bot.on("ready", () => {
  console.log("Online 👍");
});

bot.on("messageCreate", (message) => {
  if (message.content === "!Ping") {
    console.log("Online 👍");
    bot.createMessage(message.channel.id, "Pong!");
  }
});
bot.connect();

@bsian03
Copy link
Collaborator

bsian03 commented May 11, 2024

User account token or bot token?

@Demon-X14
Copy link
Author

User account token or bot token?

user account

@bsian03
Copy link
Collaborator

bsian03 commented May 11, 2024

You do realise that's against TOS right..?

@bsian03 bsian03 closed this as not planned Won't fix, can't repro, duplicate, stale May 11, 2024
Repository owner locked and limited conversation to collaborators May 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants