no login

Open
#156 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Quiet
Domain
api

Research direction

Reproduce the provided client.loginBot and ready-handler snippet, then inspect the loginBot entry point and the conditions that emit ready. Confirm whether the bot connects successfully and identify the relevant error or missing prerequisite; done means the supplied bot reaches the online state or the cause is clearly documented.

Written by the indexing model from the issue text.

Description

What happened?

my code is

import { Client } from "stoat.js";

let client = new Client();

client.on("ready", async () =>
  console.info(`Logged in }!`),
);

client.on("message", async (message) => {
  if (message.content === "hello") {
    message.channel.sendMessage("world");
  }
});

client.loginBot("token redacted")

but my bot doesnt come online

Dominant language
TypeScript
Stars
285
Forks
108
Avg merge
16h 49m
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stoatchat/javascript-client-sdk

All issues in stoatchat/javascript-client-sdk

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.