Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
otothea committed Sep 17, 2021
1 parent 0c21e21 commit 801c133
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 2 deletions.
15 changes: 13 additions & 2 deletions docs/directives/cost.rst
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
$[cost]
=======

Directs the bot to add a currency cost to the command.
Directs the bot to deduct currency from the user who uses the command or optionally the targeted user.

Usage:
$[cost ``<amount>``]
$[cost ``<amount>`` ``[user]``]

Arguments:
* ``amount`` **<required>** - Amount of currency it should cost
* ``user`` **[optional]** - The user to deduct from the currency (if no user then it will deduct from the user issuing the command)

Example Command:
**name**: !cost
Expand All @@ -20,3 +21,13 @@ Example Command:
botisimo: You just paid 50 Goldfrags to use this command, ha!
user: !cost
botisimo: Not enough Goldfrags to use that command 37/50

Example Command:
**name**: !cost

**response**: $[cost 50 $(1)] $(1) just lost 50 Goldfrags, ha!

**output**::

user: !cost @username
botisimo: @username just lost 50 Goldfrags, wooha!
2 changes: 2 additions & 0 deletions docs/sponsorship/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,5 @@ Related Videos
^^^^^^^^^^^^^^

.. youtube:: FSYnSIEPl_k

.. youtube:: ywibhnjDYhs
2 changes: 2 additions & 0 deletions docs/variables/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,7 @@ Response variables are used to make dynamic `custom command <https://botisimo.co
usertype
winner
xp
xpnext
xpcurrent
youtube
advanced
17 changes: 17 additions & 0 deletions docs/variables/xpcurrent.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$(xpcurrent)
============

Resolves the amount of xp currently gained towards next level.

Usage:
$(xpcurrent)

Example Command:
**name**: !xpcurrent

**response**: You have $(xpcurrent) XP towards next level

**output**::

user: !xpcurrent
botisimo: You have 5,000 XP towards next level
17 changes: 17 additions & 0 deletions docs/variables/xpnext.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
$(xpnext)
=========

Resolves the amount of xp needed to reach next level.

Usage:
$(xpnext)

Example Command:
**name**: !xpnext

**response**: You have $(xpnext) XP until next level

**output**::

user: !xpnext
botisimo: You have 5,000 XP until next level

0 comments on commit 801c133

Please sign in to comment.