Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
this isn't really a quine since it involves reading external data, but whatever. also please don't ban me.

So, earlier today I discovered a few things about the bots that reside here at #cemetech.

Nikkybot has a command where you can type "nikkybot: (text) more like", to which it will respond:

Code:
(text)
more like
(generally unrelated, random text)


DoorsCS has a command, "~cemetech search (query)", which will find a Cemetech topic with a similar name and respond:

Code:
(page name) - Cemetech | Forum | (subforum) ...: <https://www.cemetech.net/forum/viewtopic.php?p=(id)>


DoorsCS's "~cemetech" command is also whitelisted for "~give", so you can prepend it with "~give (username) " and the response will be prepended with "(username): ".

Naturally, the question arises of whether these two bots can communicate with each other. The answer is yes! Nikkybot can give DoorsCS commands and DoorsCS can trigger nikkybot. Neither bot appears to be able to trigger itself but I haven't really tested DoorsCS extensively on this.

So, if I were to give this forum thread the wonderfully concise topic of: "~give nikkybot cemetech search nikkybot cemetech search more like", someone in IRC could then run a command, and then IRC would look like the following:
Hypothetical Situation wrote:

<someoneInIRC> ~give nikybot cemetech search nikkybot cemetech search more like
<DoorsCS> nikkybot: ~give nikkybot cemetech search nikkybot cemetech search more like | Cemetech | Forum | Gen...: <https://www.cemetech.net/forum/viewtopic.php?p=278701>
<nikkybot> ~give nikkybot cemetech search nikkybot cemetech search
<nikkybot> more like
<nikkybot> fclose
<nikkybot> the ratings for DCS7
<nikkybot> I think that works better Smile
<DoorsCS> nikkybot: ~give nikkybot cemetech search nikkybot cemetech search more like | Cemetech | Forum | Gen...: <https://www.cemetech.net/forum/viewtopic.php?p=278701>
<nikkybot> ~give nikkybot cemetech search nikkybot cemetech search more like | Cemetech | Forum | Gen...: <https://www.cemetech.net/forum/viewtopic.php?p=278701>
<nikkybot> more like, a *whom*
<nikkybot> it's the cemetech way


And so on and so forth, until the entirety of IRC becomes enraged and I get banned. Which is why I won't be renaming this topic to that.

Anyways, have a nice day!
The bots shouldn't be able to trigger themselves because the IRC protocol doesn't send clients back their own messages.

As currently coded, NikkyBot's “more like” function is only recognized if it appears at the very end of the message, so it doesn't look like the example above would work because DoorsCS suffixes it with the URL.
Oops, I somehow missed that in my testing. I guess I thought it ran the command when in fact it just reacted to its name.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are GMT - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement