Skip to content

Corde example: corde bot sent message but the testing bot doesn't response #674

Answered by lucasgmagalhaes
A2va asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @A2va, maybe you're using the wrong value for botTestToken. Did you check it?

Another thing that I noticed was in the test file: login is an async function, so put await before calling it. It's possible that the test is being executed before the bot made login so it is executed unexpectedly

beforeStart(async() => {
  await login();
});

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@A2va
Comment options

@lucasgmagalhaes
Comment options

@A2va
Comment options

Answer selected by lucasgmagalhaes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants