mosbth / irc2phpbb

IRC bot, now lives on Discord bur remains its power to visit IRC whenever it wants.
12 stars 16 forks source link

Possible rewrite to allow custom send time #49

Open NiklasAurora opened 6 years ago

NiklasAurora commented 6 years ago

https://github.com/mosbth/irc2phpbb/blob/be7ec4754161243143e67fbf370bdc1d96d09f79/marvin.py#L295-L300

As of now, this implementation lets Marvin respond to phrases without being mentioned. However, his response will be sent immediately after, as if he was mentioned.

Solutions tried:

Possible solutions would be a new folder for queued messages, unsure of rest of implementation but would have to be separate from /incoming

mosbth commented 2 weeks ago

Perhaps sleep a second or two before submitting a reply, so it seems more like he is actually pressing the keyboard before replying.

Unsure if marvin should have som spam-detection to avoid sending many messages, that has not been an issue this far.