I'm trying to make some code that makes me kind of like a bot in a chat room (it's more of a joke between friends
). However I'm just starting this script and therefore don't have much knowledge of it. How would I go around to finding out all the text after a command like !say? For example,
!say pie is good
I want the bot (me) to respond with
pie is good
What, though, if I wanted to find out the second and third word instead of gathering all the info? like..
!set link1
http://shoutbox.menthix.net/
The script for that would have to find out that the user typed !set, find out what the second word is (link1) and then set a variable to equal
http://shoutbox.menthix.net/
Is this kind of stuff possible? I'm hoping so