DLMousey / DLMousey/sarcasm-bot

Posting a discord message URL breaks bot

Open
#11 3 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
3
Forks
7
PR merge metrics
No merged PRs in 30d

Description

I just...

guh.

Output from console;
```bash
/usr/src/app/bot.js:51
for (let i = 0; i < lastMessage.content.length; i++) {
^

TypeError: Cannot read property 'content' of undefined
at /usr/src/app/bot.js:51:39
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
Auth token from environment
Bot config from environment
Signed in, Ready to rock and roll
/usr/src/app/bot.js:51
for (let i = 0; i < lastMessage.content.length; i++) {
^
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.