You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes! You can do that. Basically, you can write a new bot that connects to the IRC server and sends a private message to your existing bot. Your existing bot will need to listen to messages that are not from a specific channel. All this information is in the $Message object. You can pass in custom data to your bot on the command-line by the -State switch that places that object in the $Bot.State object. This object can be anything, such as the message you want the bot to send and the username of the other bot you wish to send to (you can use a hash). You can wrap this bot up in a custom script too, and inline your actual bot script with the -BotScript argument. You can get as fancy as you want!
Here's another option.... you can have your bot join another channel that you monitor, for instance by sending /join #devchannel You can send your bot instructions through this channel or private message channel. I've done that for development.
Hi :)
Is it possible to send text to the bot from an external script?
e.g.
./mybot.ps1 -text "my fancy text" -channel "mychannel"
The Bot will then post "my fancy text" on "mychannel"
Could be usefull as an rss-reader or something like that
The text was updated successfully, but these errors were encountered: