FKLC / WhatsAppToDiscord

WhatsAppToDiscord is a Discord bot that uses WhatsApp Web as a bridge between Discord and WhatsApp.
https://fklc.github.io/WhatsAppToDiscord/
MIT License
239 stars 67 forks source link

Bot stopped running on its own #130

Closed hwang260 closed 1 year ago

hwang260 commented 1 year ago

I run the bot for transfer whatsapp message to a discord channel. It stopps running on its own , same thing happens for Windows 11, for AWS WinOS, AWS linux. A reconection never worked, I have to make a new token and remove previous db and log files.

{"level":30,"time":1677704761628,"pid":98780,"hostname":"DESKTOP-R647NL5","msg":"Initialized database."} {"level":30,"time":1677704761629,"pid":98780,"hostname":"DESKTOP-R647NL5","msg":"Loaded settings."} {"level":30,"time":1677704761631,"pid":98780,"hostname":"DESKTOP-R647NL5","msg":"Loaded contacts."} {"level":30,"time":1677704761632,"pid":98780,"hostname":"DESKTOP-R647NL5","msg":"Loaded chats."} {"level":30,"time":1677704762282,"pid":98780,"hostname":"DESKTOP-R647NL5","msg":"Discord client started."} {"level":50,"time":1677704762802,"pid":98780,"hostname":"DESKTOP-R647NL5","err":{"type":"DiscordAPIError","message":"Missing Access","stack":"DiscordAPIError: Missing Access\n at RequestHandler.execute (C:\snapshot\WhatsAppToDiscord\node_modules\discord.js\src\rest\RequestHandler.js:350:13)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async RequestHandler.push (C:\snapshot\WhatsAppToDiscord\node_modules\discord.js\src\rest\RequestHandler.js:51:14)\n at async GuildChannelManager.edit (C:\snapshot\WhatsAppToDiscord\node_modules\discord.js\src\managers\GuildChannelManager.js:269:21)\n at async Object.repairChannels (C:\snapshot\WhatsAppToDiscord\src\discord_utils.js:33:5)\n at async C:\snapshot\WhatsAppToDiscord\src\index.js:35:3","name":"DiscordAPIError","method":"patch","path":"/channels/1080555717804707860","code":50001,"httpStatus":403,"requestData":{"json":{"name":"control-room","parent_id":"1080555716978413568"},"files":[]}},"msg":"Missing Access"}

FKLC commented 1 year ago

Are you sure that the bot still has manage channels permission?