Closed ArchFeh closed 2 years ago
What didn't work? Do you have an error message?
Perhaps triggering commands without prefixes could meet your needs https://errbot.readthedocs.io/en/latest/user_guide/plugin_development/botcommands.html?highlight=prefix#without-a-bot-prefix or alternatively, run a second errbot instance connected to the IRC server to expose commands within that scope.
The log message Previous timer found and removed
means the poller was scheduled correctly, what didn't work? Do you have an error message?
What didn't work? Do you have an error message?
Perhaps triggering commands without prefixes could meet your needs https://errbot.readthedocs.io/en/latest/user_guide/plugin_development/botcommands.html?highlight=prefix#without-a-bot-prefix or alternatively, run a second errbot instance connected to the IRC server to expose commands within that scope.
The log message
Previous timer found and removed
means the poller was scheduled correctly, what didn't work? Do you have an error message?
Thx for replying. For 1 and 3, there's no err message output. 1 just didn't send anything. In 3 there's a return or yield, and didn't send anything either. I will test without prefix tonight.
- What didn't work? Do you have an error message?
- Perhaps triggering commands without prefixes could meet your needs https://errbot.readthedocs.io/en/latest/user_guide/plugin_development/botcommands.html?highlight=prefix#without-a-bot-prefix or alternatively, run a second errbot instance connected to the IRC server to expose commands within that scope.
- The log message
Previous timer found and removed
means the poller was scheduled correctly, what didn't work? Do you have an error message?
Thx, I figured out all my problems!
Would you mind sharing what caused the issues and how you resolved them? It may help others in the future or highlight deficiencies in the documentation.
Sure. For 1 and 2 problem, I use without a bot prefix instead of callback_message()
. For 3 problem, I found that in method can't use return
or yield
, if wanna send some messages to channel or user, use self.send(self.build_identifier("#channel")
or self.send(self.build_identifier("nickname"),
I think in callback has the same issue, we need use self.send
to send message instead of return
or yield
. I use return
and yield
in my command to automatically check user or channel, and send message, but It can't be used in any callback.
Thank you for the feedback. :+1:
Need help with
Issue description I wrote a callback function, it detacts in message whether exists
bug xxxxxx
, then do some search and return to channel or person. But it didn't work.The second question. I have a bridge bot in my irc channel, it bridge irc and telegram. When I send commands from telegram, the plugin doesn't work, because this bot add nickname before the command. So is there anyway to make it run?
The third question.
start_poller()
didn't work. I wrote a function to update database sqlite. I wantstart_poller()
runs every 60s, but it didn't do anythig. It returnedPrevious timer found and removed
Thanks ahead!
Steps to reproduce Provide steps to reproduce the behavior or include sample plugin code.
Environment (please complete the following information):
Additional info If you have any more information, please specify it here.