Paste #15837: Edit of P#15836 - monkeytag

Date: 2015/05/17 20:19:35 UTC-07:00
Type: Denizen Script

View Raw Paste Download This Paste
Copy Link


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21


ircbot_tag_command:
    type: world
    debug: false
    events:
        on irc message:
        - if <context.channel.contains[#IRCBot]> queue clear
        - if "!<context.message.starts_with[dircbot<&co> ]>" && "!<context.message.starts_with[?tag ]>" queue clear
        - if <context.message.starts_with[dircbot<&co>]> {
          - irc message <context.channel> "Hello <context.speaker>: <&chr[03]>05Type '?tag <&lt>tag here<&gt>' to test how a tag parses! For more Denizen help, type !help or !getstarted"
          }
          else {
          - irc message <context.channel> "<&gt> <&chr[03]>05The tag '<context.message.substring[6]>' fills with '<parse:<context.message.substring[6]>>'"
          }
        on server start:
        - wait 5s
        - ~IRC connect ircserver@irc.esper.net
        - IRC raw ircserver@irc.esper.net "USER monkeytag mcmonkey.org mcmonkey.org monkeytag"
        - IRC raw ircserver@irc.esper.net "NICK monkeytag"
        - IRC join ircchannel@irc.esper.net#denizen-dev
        - IRC join ircchannel@irc.esper.net#mcmonkey
        - IRC join ircchannel@irc.esper.net#monkeybot