Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;do everything inside { } when detected a user with level 10 sends !setnextstream on channel #landail
- ;user with lvl 10 or higher can type in chat !setnextstream which returns in #landail
- ;what to say when !nextstream is ran by ANYUSER
- ;script includes notes as to what ways use to achieve this as proper uses of spaces
- ;in messages send to chat channels need syntax like $+ $chr(160) to display spaces in some cases
- on 10:text:!setnextstream*:#landail: {
- ;setup the first part of the next stream msg
- set %prestreamannouncemsg Lan's next stream will be
- ;append a SPACE aka $chr(160) to the %prestreamannouncemsg variable
- set %prestreamannouncemsg %prestreamannouncemsg $+ $chr(160)
- ;assign the userinput that contains the next stream data to the %nextstreampt2 variable
- set %nextstreampt2 $2-
- ;possible 2 ways to achieve the same thing
- ;set %wholestreammsg to include the static %prestreamannouncemsg variable and dynanmic variable %prestreamannounce containing the user input
- set %wholestreammsg %prestreamannouncemsg $+ %nextstreampt2
- ;announce to channel what the new !nextstream command has been set to
- msg #landail %wholestreammsg
- ;assign 1 to %streamnext to be used in a check later by !nextstream command
- set %streamnext 1
- ;sent to logfile who ran command
- echo -s $nick ran the !setnextstream command !nextstream should return -> %wholestreammsg
- }
- ;------------------------------------------------------------------------------------------;
- ; ;
- ; !nonextstream command and how to use & what it does ;
- ; ;
- ;------------------------------------------------------------------------------------------;
- ;user with lvl 10 or above can run !nonextstream to set !nextstream to msg channel #landail
- ;Sorry we don't have info/date re: lan's next stream yet.
- on 10:text:!nonextstream*:#landail: {
- set %streamnext 0
- msg # the !nextsteam has been set to -> "Sorry we don't have info/date re: lan's next stream yet.
- ;log to console & logfile the username who ran the !nonextstream command
- echo -s $nick ran !nonextstream
- ;(POSSIBLY) convert this to be ran via a whisper to the bot instead of to the main chat channel
- ;code to possibly achieve the above
- ;query $nick !nextstream has been set to "Sorry we don't have info/date re: lan's next stream yet."
- }
- ;------------------------------------------------------------------------------------------;
- ; ;
- ; !nextstream command ;
- ; ;
- ;------------------------------------------------------------------------------------------;
- ;when ANY user types !nextstream then send msg
- ;to channel #landail with what the nextdate was set to
- ;if %streamnext variable holds the next stream date
- on *:text:!nextstream*:#landail: {
- if (%streamnext = 1) {
- msg # %wholestreammsg
- echo -s $nick ran the !nextstream command
- }
- if (%streamnext = 0) {
- msg # Sorry we don't have info/date re: lan's next stream yet.
- }
- }
- ;everything below betwen /* and */ are comments
- /*
- misc debug / test ways to achieve results via mirc scripting syntax
- on 10:text:!testnextstream*:#sevwren: {
- set %prestreamannouncemsg Lan's next stream will be
- set %prestreamannouncemsg %prestreamannouncemsg $+ $chr(160)
- set %wholestreammsg %prestreamannounce $+ %nextstream
- %wholestreammsg
- ;send to console what the next stream date was set to
- echo The final wholestreammsg variable now contains. - %wholestreammsg
- }
- %prestreamannouncemsg msg #landail Lan's next stream will be
- %wholestreammsg Lan's next stream will be Friday (partyin', partyin', yeah)
- %nextstreampt2 Friday (partyin', partyin', yeah)
- %prestreamannounce Lan's next stream will be
- %streammsg Lan's next stream will be Friday (partyin', partyin', yeah)
- %nextstream Wednesday, July 25th
- */
Add Comment
Please, Sign In to add comment