Advertisement
WarFang_

JunkShip Documentation

Oct 14th, 2017
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 2.98 KB | None | 0 0
  1. ## JUNKSHIP COMMANDS ##
  2.  
  3. ## GOOGLE ##
  4. ## .g , .google and .gis are all valid command hooks. .gis will search IMAGES ONLY.
  5.  
  6.  
  7. ## YOUTUBE ##
  8. ## .y , .yt and .youtube are all valid command hooks. Will return whatever is relevant to your query.
  9.  
  10.  
  11. ## TELL ##
  12. ## .tell <user> <message> -- bot will relay your specified message to the user when the user is next seen
  13.     ## .showtells -- has the bot bring up all tells sent to you by a user.
  14. ## There is a hard cap of FIVE (5) on how many tells can be sent to a user. If you go over this limit, tough luck.
  15.  
  16.  
  17. ## DICE ##
  18. ## .dice #df (+#) / d## -- performs a dice roll. DISCLAIMER: Katherine is not responsible for the bot dicking you over.
  19.     ## Passive dice-rolling enabled. Command prefix is not required.
  20. ## EXAMPLE:
  21. [ <@DrRosch> 4df+5 MDEF example roll
  22. <JunkShip> DrRosch: MDEF example roll: 7 (4df+5=0, 0, +, +) ]
  23.  
  24.  
  25.  
  26. ## SEEN ##
  27. ## .seen <user> -- will return how long ago the specified user was last seen, along with their last message sent.
  28.  
  29.  
  30. ## REM ##
  31. ## .rem <hook> <body> -- allows a user to have the bot 'remember' something. USEAGE:
  32. [ <@DrRosch> .rem docs - Documentation https://link-example.com/abcdefg12345
  33. <JunkShip> DrRosch: done.
  34. <@DrRosch> ?docs
  35. <JunkShip> docs - Documentation https://link-example.com/abcdefg12345 ]
  36.     ## To have the bot forget a rem, do ' .for <hook> ' e.g ' .for docs '
  37.     ## To append something to a rem, do ' .rem <hook> + <addition> ' e.g ' .rem docs + | Alt link: https://link-example.com/zyx098
  38.     ## To replace a word/phrase in a rem, do ' .rem <hook> s/keyword/newkeyword ' e.g ' .rem Bot s/butts/butt '
  39.     [ <@DrRosch> .rem Bot - The bot is a butts
  40.     <JunkShip> DrRosch: done.
  41.     <@DrRosch> .rem bot s/butts/butt
  42.     <JunkShip> DrRosch: replacing 'butts' with 'butt' in - The bot is a butts
  43.     <@DrRosch> ?bot
  44.     <JunkShip> bot - The bot is a butt ]
  45.  
  46.  
  47. ## QUOTE ##
  48.  
  49. ## .quote/.q add|del <user> <message> -- stores user quotes in a shitty database or something. USEAGE:
  50. [ <@DrRosch> .q add DrRosch ASSFUCK.
  51. <JunkShip> DrRosch: quote added.
  52. <@DrRosch> .q DrRosch
  53. <JunkShip> DrRosch: [1/1] 2017-10-14 <DrRosch> ASSFUCK. ]
  54.     ## .q <user> -- will return a random quote belonging to the specified user. Doing ' .q <user> # ' will specify a particular quote corresponding to the specified numerical value (represented by #).
  55.     ## This is awful but apparently deleting quotes is a Broken Thing(tm).
  56.  
  57.  
  58. ## PING ##
  59.  
  60. ## .ping -- Bot will respond with 'pong' directed at the user. Lets you know if you're connected I s'pose. Probably one of the shortest lines of code in this thing.
  61. ###
  62. from util import hook
  63.  
  64. @hook.command
  65. def ping(pong)
  66.     return pong + "pong"
  67. ###
  68.  
  69. ## BOTSNACK ##
  70.  
  71. ## botsnack -- just a weird feature. The bot deserves rewards too!
  72. [ <@DrRosch> botsnack
  73. <JunkShip> [happy bot noises!!] ]
  74. ###
  75. from util import hook
  76.  
  77. @hook.regex("botsnack")
  78. def snack(match):
  79.     return "[happy bot noises!!]"
  80. ###
  81. ## JUNKSHIP IS A FORK OF RMMH'S SKYBOT. JUNKSHIP CURRENTLY RUNS ON PYTHON 2.7+.
  82. ## JunkShip last updated 14-10-2017
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement