cameroncros / OctoPrint-DiscordRemote

Discord plugin for OctoPrint
MIT License
68 stars 32 forks source link

Latest two versions don't work at all #248

Closed EvilGremlin closed 1 year ago

EvilGremlin commented 1 year ago

Just stopped working completely, not showing online, nothing sent, no response to commands and nothing in the logs. I even recreated bot and it didn't change anything. Ubuntu 22.04.1, Octoprint 1.9.0rc5, Python 3.10.6 octoprint-systeminfo-20230507190815.zip plugin_discordremote.log

Mscampbell7 commented 1 year ago

I can't seem to figure this one out as well. I thought it was related to the update for corrected date/time, but after talking with @cameroncros and reviewing changelog, I have not the slightest idea why this would cause the bot to stop working. Been stuck offline for me for a while, @EvilGremlin let me know if you can get it working.

cameroncros commented 1 year ago

Would either of you be comfortable sending me your bot token and channel ID? The plugin is working fine with my bot, so I can test that it works for your bots.

Additionally, can you give me the output of pip list on your octoprint venv?

EvilGremlin commented 1 year ago

np, can you ping me in octo/marlin discord?

cameroncros commented 1 year ago

So, seems you are both right, and it doesn't work super reliably still. I am gonna try a whole different approach. Rewrite number 4....

dillacorn commented 1 year ago

I think I'm going to stick to telegram plugin for now... I thought I was doing something wrong because it says my bot is offline and isn't responding to commands. Is a solution around the corner?

EvilGremlin commented 1 year ago

it works fine, bit you might have to regenerate token a few times until it'll like one, i think there is issue with special characters somewhere (tokens with double dash or double periods don't work)

cameroncros commented 1 year ago

I am still investigating, I have no idea why some tokens work and some don't

a1co commented 1 year ago

Did a first time install and ran into the same problem. Regenerating the tokenb worked for me. But i had to do so 4 times.

cameroncros commented 1 year ago

If anyone hits this again, please keep a list of all the tokens that failed, I wonder if there is any obvious reason why its not working with some tokens and not others

Mscampbell7 commented 1 year ago

I still haven't found one that works for me, but I'll keep trying and write a list of all the ones that did not work. Do I need to reinvite the bot every token reset? I would assume not.

cameroncros commented 1 year ago

Nope, just update the token.

On Mon, 22 May 2023, 1:30 pm Mscampbell7, @.***> wrote:

I still haven't found one that works for me, but I'll keep trying and write a list of all the ones that did not work. Do I need to reinvite the bot every token reset? I would assume not.

— Reply to this email directly, view it on GitHub https://github.com/cameroncros/OctoPrint-DiscordRemote/issues/248#issuecomment-1556468407, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAK7FL3T3GWTEJBRTEBJYYDXHLMUPANCNFSM6AAAAAAXZCI4VU . You are receiving this because you were mentioned.Message ID: @.***>

cameroncros commented 1 year ago

@EvilGremlin @Mscampbell7 If you are still interested in using this plugin, try this latest version of the plugin:

https://github.com/cameroncros/OctoPrint-DiscordRemote/archive/refs/heads/cloud-discordshim.zip

This is what the next version of DiscordRemote will be. Instead of setting up the discord bot yourself, everyone will just use my bot, which I am hosting on a server. There are no more python versioning issues with this arrangement, and the discord bot can be self hosted for those who care.

Code for the discord bot: https://github.com/cameroncros/discordshim_rs

cameroncros commented 1 year ago

5.0.0 is released, which should be a viable solution to this problem. I am going to close off this ticket.