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

Daily Question Reminder Not Working #55

Closed
ParasY1724 opened this issue Oct 14, 2024 · 3 comments
Closed

Daily Question Reminder Not Working #55

ParasY1724 opened this issue Oct 14, 2024 · 3 comments

Comments

@ParasY1724
Copy link
Contributor

Describe the bug
I was working on #53 , there is code for daily-question reminder at 6:00 AM but the code didn't work clearly =>
const channel = client.channels.cache.get(process.env.CHANNEL_ID);
But Thing is we have to send message to all channels for which our bot is Authicated , line no 8 uses process.env.CHANNEL_ID which is wrong as CHANNEL_ID in env specifies server not channel (Text)
so we get channel = undefined
and failed to send message occurs as below

Screenshot From 2024-10-15 02-20-04

@ParasY1724
Copy link
Contributor Author

Please Assign this task to me

@sudo-dpkg
Copy link
Owner

image

working perfectly

@ParasY1724
Copy link
Contributor Author

ParasY1724 commented Oct 15, 2024

working perfectly

Please Add your bot to another server and try it , in your case channel_id in env is same as your channel so only you are receiving it .
Like i have added your bot in my server and i didn't receive it.

line no 10 in ready.js
const channel = client.channels.cache.get(process.env.CHANNEL_ID);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants