Advertisement
TinyElvisGamingYT

PVPBot Commands

Mar 28th, 2017
602
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 18.50 KB | None | 0 0
  1. --- *****UPDATES TO COMMANDS COMING SOON ONCE UPDATED****
  2. title: Documentation
  3. description: Instructions for usage of PvPCraft Discord bot.
  4. component: ContentPage
  5. ---
  6. Hello and Welcome to PvPCraft's documentation. Some features that are still being tested may not be documented.
  7.  
  8. Prefixes default to /, // and !! but can be changed in your servers settings page.
  9.  
  10. This documentation is primarily about text commands.
  11.  
  12. <br>
  13.  
  14. ## General notes
  15.  
  16. -----
  17. By default, most permissions are unset and default to false make sure to read the permissions section to learn how to activate commands and choose who can use them.
  18.  
  19. When running commands for the bot make sure not to include **\<\>** or **[]**, they are only there to tell you what you need to edit.
  20. Things in **\<\>** are required for the command to run while things in **[]** are optional.
  21.  
  22. If you don't have pvpcraft yet click [here](https://invite.pvpcraft.ca) to invite him
  23.  
  24. <br>
  25.  
  26. ## Settings & Permissions
  27.  
  28. -----
  29.  
  30. <iframe width="560" height="315" src="https://www.youtube.com/embed/M8z7Jofc6bU" frameborder="0" allowfullscreen></iframe>
  31.  
  32. Permissions are the cornerstone of every system of **PvPCraft** they allow you to limit commands to a specific channel,
  33. role or user in whatever way you deem fit.
  34.  
  35. If you are familiar with linux commands this chart should be enough. Just remember more specific things inherit from less specific things.
  36.  
  37. | command | description | node |
  38. |---|---|---|
  39. | perms set \<allow\|deny\|remove> \<node>\[ --channel \<channel>]\[ --role \<role>]\[ --user \<user>] | sets permission nodes | Discord Perm Administrator |
  40. | perms list | displays a link to the website with the current permissions setup | Discord Perm Administrator |
  41. | perms hardreset | removes all user defined permissions | Server Owner |
  42. | setting | generates a link that will allow anyone with admin perms to configure part of the bot through a web ui | Admin |
  43.  
  44. Though few, these commands form the most powerful permissions system known to Discord. Look at another module and find a node, something like music.play
  45. If you want to give away all commands beginning with music, you can add the wildcard *, eg: `music.*`.
  46. To allow a permission node for everyone in all text channels, for example enabling music for everyone in all text channels:
  47.  
  48. ```
  49. /perms set allow music.*
  50. ```
  51.  
  52. You can then constrain that a bit more by adding one of the optional adjustments onto the end of it. Let's see how it looks when we constrain the node to one channel.
  53. ```
  54. /perms set allow music.* --channel #djs
  55. ```
  56. In this case we allow the users to use all the music commands in the text chat `#djs` which limits the spam created by users running these commands.
  57. Say you want to keep forceskip for your admin team though. To do this you would first deny the users the forceskip permission. Then allow it for your admin role(s).
  58. This example builds on top of the previous channel specific permission. If you want server-wide music commands remove the `--channel #djs` from the following commands.
  59. ```
  60. /perms set deny music.forceskip --channel #djs
  61. ```
  62. ```
  63. /perms set allow music.forceskip --channel #djs --role @Admin
  64. ```
  65.  
  66. <br>
  67.  
  68. ## Music
  69.  
  70. -----
  71.  
  72. The Music module allows you to setup the bot to play a queue of songs in a voice channel.
  73.  
  74. If the music lags I apologise in advance... There is not much that can be done about that at the moment, and really it
  75. boils down to more server space, which costs money. If you want to help out, the bot has a [Patreon](https://www.patreon.com/macdja38)
  76. and a [Paypal](https://www.paypal.me/pvpcraftbot).
  77.  
  78. **Soundcloud and some other random websites are supported by the /play command.**
  79.  
  80. | command | description | node |
  81. |---|---|---|
  82. | init | temporarily binds the bot to the voice channel the user is in, and the text channel the command was used in | music​.init |
  83. | destroy | un-binds the bot from it's current voice and text channel​. | music​.destroy |
  84. | play \<search term \| video link \| playlist \> | plays the song or playlist in the bound channel | music​.play |
  85. | skip [target] | votes to skips the song at index in queue or the currently playing song | music​.voteskip |
  86. | skip [target] -f | force skips the song at index in queue or the currently playing song | music​.forceskip |
  87. | pause | pauses the current song | music​.pause |
  88. | resume | resumes the current song | music​.resume |
  89. | list | lists the contents of the queue | music​.list |
  90. | link | displays a link to the currently playing song | music​.link |
  91. | time | displays the current time into the song | music​.time |
  92. | clear [--user \<user\>] | clears the queue, if a user is supplied only clears that user from the queue | music.clear |
  93. | volume [volume] | if volume is provided it sets the volume, if not it displays the volume | music​.volume​.set or/and music​.volume​.list
  94. | shuffle | shuffles the current queue | music​.shuffle |
  95.  
  96. #### Notes
  97.  
  98. ##### Denying access to a voice channel
  99.  
  100. The permission node `music.initinto` can be assigned to a music channel to allow users to init the bot into that channel.
  101. By default all users have this node so it must be expressly denied so if you want to limit the bot to one voice channel
  102. you would use:
  103.  
  104. ```
  105. /perms set deny music.initinto
  106. ```
  107.  
  108. then you have to allow it in the **voice** channel of your choosing using
  109.  
  110. ```
  111. /perms set allow music.initinto --channel That Music Channel
  112. ```
  113.  
  114. Remember that music channels can't be mentioned so you need to type out the name Exactly.
  115.  
  116. ##### Song Limit
  117.  
  118. You can also limit the number of songs a single user can queue using the numbers mechanic to the permission system.
  119. By giving the permission node `music.songcount` a specific number you can choose who gets to queue how many songs.
  120. For example to apply a 10 songs in queue cap to all users you can use:
  121.  
  122. ```
  123. /perms set 10 music.songcount
  124. ```
  125.  
  126. It can also be targeted at a specific group, user or/and channel the same way any permissions command can be.
  127.  
  128. <br>
  129.  
  130. ## Giveaways
  131.  
  132. -----
  133.  
  134. Giveaways allow you to host giveaways on your Discord server. At the moment, only one giveaway can be hosted on each Discord server.
  135.  
  136. PvPCraft's giveaway module allows you to choose who can enter the giveaway, as well as assign roles/users of your choosing the ability
  137. to draw.
  138.  
  139. | command | description | node |
  140. |---|---|---|
  141. | giveaway \<enable\|disable>\[ --channel \<channel>] | enables or disables the giveaways. If no channel is provided it will use the last one used, or if none has been used the channel the message was sent in​. | admin​.giveaway​.setup |
  142. | gclear | clears all entries | admin​.giveaway​.clear |
  143. | gcount | counts all entries | admin​.giveaway​.count |
  144. | gdraw [count] | clears all entries | admin​.giveaway​.draw |
  145. | enter | enters a giveaway | giveaway​.enter |
  146.  
  147. <br>
  148.  
  149. ## Moderation
  150.  
  151. -----
  152.  
  153. Moderation module, mod log was moved into feeds, this is now just purge, to disable the old one use `/setlog disable`.
  154.  
  155. | command | description | node |
  156. |---|---|---|
  157. | purge \[count]\[ --user \<user>]\[ --before \<message id>]\[ --after \<message id>] | purges the text channel of messages | moderation​.tools​.purge |
  158.  
  159. <br>
  160.  
  161. ## Feeds Manager
  162.  
  163. -----
  164.  
  165. This is similar to the permissions system but for events like Warframe alerts and/or moderation log events.
  166.  
  167. | command | description | node |
  168. |---|---|---|
  169. | feeds \<start\|stop> \<feed node>\[ --channel \<channel>] | enables or disables a specific feed within a channel. | feeds​.manage |
  170. | find \<node> | checks where a certain node goes | feeds​.find |
  171.  
  172. *in the next few days the node will be changed from feed. to feeds.
  173.  
  174. <br>
  175.  
  176. ### Available feeds
  177. <!--
  178. | feed node | description | permission node |
  179. | --- | --- | --- |
  180. | moderation​.message​.deleted | Logs message deletes | msglog​.whitelist​.message​.deleted |
  181. | moderation​.message​.updated | Logs message edits | msglog​.whitelist​.message​.updated |
  182. | moderation​.channel​.created | Logs channel creation | |
  183. | moderation​.channel​.deleted | Logs channel deletion | |
  184. | moderation​.channel​.updated | Logs channel edits | |
  185. | moderation​.server​.updated | Logs server updates | |
  186. | moderation​.role​.created | Logs role creation | |
  187. | moderation​.role​.updated | Logs edits to roles | |
  188. | moderation​.role​.deleted | Logs role deletion | |
  189. | moderation​.member​.added | Logs joins | |
  190. | moderation​.member​.removed | Logs leaves/kicks | |
  191. | moderation​.member​.banned | Logs user bans | |
  192. | moderation​.member​.unbanned | Logs use unbans | |
  193. | moderation​.member​.updated | Logs server specific user changes | |
  194. | moderation​.voice​.join | Logs voice joins | |
  195. | moderation​.voice​.leave | Logs voice leaves | |
  196. | moderation​.user | Logs user changes | |
  197. -->
  198.  
  199. <table>
  200. <thead>
  201. <tr>
  202. <th>feed node</th>
  203. <th>description</th>
  204. <th>permission node</th>
  205. </tr>
  206. </thead>
  207. <tbody>
  208. <tr>
  209. <td style="background-color: #3F0000; color: white;">moderation​.message​.deleted</td>
  210. <td>Logs message deletes</td>
  211. <td>msglog.whitelist.message.deleted</td>
  212. </tr>
  213. <tr>
  214. <td style="background-color: #3F7F00;">moderation​.message​.updated</td>
  215. <td>Logs message edits</td>
  216. <td>msglog.whitelist.message.updated</td>
  217. </tr>
  218. <tr>
  219. <td style="background-color: #BEFF00; color: black;">moderation​.channel​.created</td>
  220. <td>Logs channel creation</td>
  221. <td></td>
  222. </tr>
  223. <tr>
  224. <td style="background-color: #BE0000; color: white;">moderation​.channel​.deleted</td>
  225. <td>Logs channel deletion</td>
  226. <td></td>
  227. </tr>
  228. <tr>
  229. <td style="background-color: #BE7F00; color: white;">moderation​.channel​.updated</td>
  230. <td>Logs channel edits</td>
  231. <td></td>
  232. </tr>
  233. <tr>
  234. <td style="background-color: #3F7F00; color: white;">moderation​.server​.updated</td>
  235. <td>Logs server updates</td>
  236. <td></td>
  237. </tr>
  238. <tr>
  239. <td style="background-color: #FFFF00; color: black;">moderation​.role​.created</td>
  240. <td>Logs role creation</td>
  241. <td></td>
  242. </tr>
  243. <tr>
  244. <td style="background-color: #FF7F00; color: white;">moderation​.role​.updated</td>
  245. <td>Logs edits to roles</td>
  246. <td></td>
  247. </tr>
  248. <tr>
  249. <td style="background-color: #FF0000; color: white;">moderation​.role​.deleted</td>
  250. <td>Logs role deletion</td>
  251. <td></td>
  252. </tr>
  253. <tr>
  254. <td style="background-color: #7FFF00; color: black;">moderation​.member​.added</td>
  255. <td>Logs joins</td>
  256. <td></td>
  257. </tr>
  258. <tr>
  259. <td style="background-color: #7F3F00; color: white;">moderation​.member​.removed</td>
  260. <td>Logs leaves/kicks</td>
  261. <td></td>
  262. </tr>
  263. <tr>
  264. <td style="background-color: #7F0000; color: white;">moderation​.member​.banned</td>
  265. <td>Logs user bans</td>
  266. <td></td>
  267. </tr>
  268. <tr>
  269. <td style="background-color: #7FBE00; color: white;">moderation​.member​.unbanned</td>
  270. <td>Logs use unbans</td>
  271. <td></td>
  272. </tr>
  273. <tr>
  274. <td style="background-color: #3F7F00; color: white;">moderation​.member​.updated</td>
  275. <td>Logs server specific user changes</td>
  276. <td>msglog.whitelist.member.updated</td>
  277. </tr>
  278. <tr>
  279. <td style="background-color: #117F00; color: white;">moderation​.user</td>
  280. <td>Logs user changes</td>
  281. <td>msglog.whitelist.user</td>
  282. </tr>
  283. <tr>
  284. <td style="background-color: #003FE2; color: white;">moderation​.voice​.join</td>
  285. <td>Logs voice joins</td>
  286. <td>msglog.whitelist.voice.join</td>
  287. </tr>
  288. <tr>
  289. <td style="background-color: #007FE2; color: white;">moderation​.voice​.switch</td>
  290. <td>Logs voice moves</td>
  291. <td>msglog.whitelist.voice.switch</td>
  292. </tr>
  293. <tr>
  294. <td style="background-color: #00BEE2;">moderation​.voice​.leave</td>
  295. <td>Logs voice leaves</td>
  296. <td>msglog.whitelist.voice.leave</td>
  297. </tr>
  298. </tbody>
  299. </table>
  300.  
  301. So for example once you have allowed yourself the permissions node required (`feeds.manage`, see the permissions section at the top) you can run the following command to log just users joining voice.
  302.  
  303. ```
  304. /feeds start moderation.voice.join
  305. ```
  306.  
  307. Which will then be logged into the text channel the command was run in. If you want to log multiple similar events a * can be used to reduce the commands required. For example to log all message events you can use.
  308.  
  309. ```
  310. /feeds start moderation.message.*
  311. ```
  312.  
  313. Be warned that unlike permissions you can't start moderation.* then stop moderation.voice in order to get everything but voice, with feeds everything but voice must be started.
  314. Also if you have given yourself * you will have to deny yourself the white-list nodes for message deletes and edits if you want your own messages to be logged when they are deleted.
  315.  
  316. <br>
  317.  
  318. ## Warframe
  319.  
  320. -----
  321.  
  322. | command | description | node |
  323. |---|---|---|
  324. | deal | gets Darvo’s daily deals | warframe​.deal |
  325. | trader | gets the current voidtrader info | warframe​.trader |
  326. | trial | gets links to the current trial statistics | warframe​.trial |
  327. | wiki \<item name> | searches the wiki for an item | warframe​.wiki |
  328. | sortie | gets the current sortie | warframe​.sortie |
  329. | farm | gets a random farming guide | warframe​.farm |
  330. | damage | gets Telkhines damage table | warframe​.damage |
  331. | primeaccess | gets the prime access info | warframe​.access |
  332. | update | gets the current update and/or hotfix | warframe​.update |
  333. | armor | does some armor calculations | warframe​.armor |
  334. | alert[s] | gets the current alerts | warframe​.alert |
  335. | alert[s] enable --channel \<channel> | Enable alert tracking | admin​.warframe​.alerts |
  336. | alert[s] add \<item> | Adds an item to the items that are being tracked | admin​.warframe​.alerts |
  337. | alert[s] remove \<item> | Removes an item from the items that are being tracked | admin​.warframe​.alerts |
  338. | alert[s] join \<item> | Allows a user to get notifications when an item comes up | warframe​.alerts​.join |
  339. | alert[s] leave \<item> | Stops notifying a user about when an item comes up | warframe​.alerts​.leave |
  340. | alert[s] list | Lists all the items users join or/and leave | warframe​.alerts​.list |
  341.  
  342. #### Misc
  343.  
  344. If a user has the permission node warframe.misc.soon the user will reply to `soon` with `soon:tm:`
  345.  
  346. <br>
  347.  
  348. ## Ranks
  349.  
  350. -----
  351.  
  352. #### Requirements
  353. The **PvPCraft** bot must have a role that is higher than the rank you want it to add to users and it must have the
  354. Discord permission **Manage Roles**.
  355.  
  356. #### Notes:
  357.  
  358. If a rank is added with the **visible name** of joinrole it will not be visible on the `/rank list` output and it will
  359. be added to users as they join the Discord server.
  360.  
  361. The **visible name** of a rank is the label for the rank that is visible to the users running /list or /rank join.
  362.  
  363. | command | description | node |
  364. |---|---|---|
  365. | rank add \<visible name> --role \<mention or exact name of an existing role> | adds the role from --role to the list of joinable ranks under the name of \<**visible name**> | admin​.rank​.add |
  366. | rank remove \<visible name> | removes a rank from the list of join-able ranks | admin​.rank​.remove |
  367. | rank join \<visible name> | adds the user of the command to the rank they request | rank​.join​.use && rank​.join​.\<visible name> |
  368. | rank leave \<visible name> | removes the user of the command from the rank they request | rank​.leave​.use && rank​.leave​.\<visible name> |
  369. | rank list | Lists all of the ranks | rank​.list |
  370.  
  371. #### Examples
  372.  
  373. If you want to simply allow all users to join all the ranks you've added to the rank list you can run
  374.  
  375. ```
  376. /perms set allow rank.*
  377. ```
  378.  
  379. If you want to add a rank to the list make sure you have admin.rank.add then run
  380.  
  381. ```
  382. /rank add member --role @member
  383. ```
  384. where the first member is the label for the rank you want users to see, and the @member is a mention for or the exact
  385. name of the role you want added to the user when they run `/rank join member`
  386.  
  387. <br>
  388.  
  389. ## Pokemon
  390.  
  391. -----
  392.  
  393. | command | description | node |
  394. |---|---|---|
  395. | pokemon \<pokemon> | searches for a Pokemon | pokemon​.pokemon |
  396. | shiny \<pokemon> | searches for a shiny | pokemon​.shiny |
  397. | pokestat \<pokemon> | gets a Pokemon’s stats | pokemon​.pokestat |
  398. | hiddenability \<pokemon> | fetches a Pokemon’s hidden ability | pokemon​.hiddenability |
  399.  
  400. <br>
  401.  
  402. ## Minecraft
  403.  
  404. -----
  405.  
  406. | command | description | node |
  407. |---|---|---|
  408. | mcping \<server address> | Pings a Minecraft server and displays some info about it. | minecraft​.mcping |
  409. | mcavatar \<minecraft username> | Displays a user's Minecraft avatar | minecraft​.avatar |
  410. | mcskin \<minecraft username> | Displays a user's Minecraft skin | minecraft​.mcskin |
  411.  
  412. <br>
  413.  
  414. ## Utilities
  415.  
  416. -----
  417.  
  418. Displays some misc info about servers and users and stuff.
  419.  
  420. | command | description | node |
  421. |---|---|---|
  422. | server | Displays some info about the server | utils​.serverinfo |
  423. | user \<user mention> | Displays some info about the user | utils​.userinfo |
  424. | ping | Displays the bot's ping | utils​.ping |
  425. | lmgtfy \<thing to google for them> | returns a let me google that for you link​. | utils​.lmgtfy |
  426. | status | displays the bot's current status | utils​.status |
  427. | getshardedinfo | displays the global information about the bot's connections | utils​.getshardedinfo |
  428.  
  429. <br>
  430.  
  431. ## Cleverbot
  432.  
  433. -----
  434.  
  435. If the user has the permission node `cleverbot.misc` respond to any messages in which they mention the bot with a
  436. message from Cleverbot.
  437.  
  438. <br>
  439.  
  440. ## Welcome
  441.  
  442. -----
  443.  
  444. Welcomes users to the server
  445.  
  446. | command | description | node |
  447. |---|---|---|
  448. | setwelcome \<welcome message \| false>\[ -p]\[ --channel \<channel>] | Sets the welcome message | admin​.welcome​.set |
  449. flag -p means the bot will private message the user.
  450.  
  451. Variables
  452. | variable | result |
  453. | --- | --- |
  454. | $mention | is replaced by a mention for the user eg @macdja38 |
  455. | $server | replaced by the servers name |
  456. | $user | replaced by the username of the user |
  457.  
  458. <br>
  459.  
  460. ## Help
  461.  
  462. -----
  463.  
  464. Help module... displays a link to this website
  465.  
  466. | node | description |
  467. | --- | --- |
  468. | help | display link to help website |
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement