Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # This is the best piece of code to use and learn from to code a bot or to have automatic replies from your client.
- # The regex will look at the first chr of your trigger. in this example it could be !paste @paste or .paste
- # If @paste is used, the bot will reply with a channel message, the other 2 triggers would send out a /notice
- # The second and 3rd lines are there to prevent pricks to try and flood you off. (one request per 60 seconds, if more HALT)
- # you could add more characters in between the brackets, like this: [@!.%$-]
- on $*:TEXT:/^[@!.]paste/Si:#:{
- inc -u60 %ms. [ $+ [ $address($nick,2) ] ]
- if (%ms. [ $+ [ $address($nick,2) ] ] >= 1) { halt }
- $iif($left($1,1) == @,.msg #,.notice $nick) Please paste your code or long text on: https://pastebin.com/ and then give us the generated link. *DO NOT* paste text in here.
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement