mirror of
https://github.com/boticord/boticordpy.git
synced 2024-11-11 19:07:29 +03:00
update docs
This commit is contained in:
parent
0b83f7a2ca
commit
d5f1e27cbc
1 changed files with 29 additions and 6 deletions
|
@ -36,25 +36,48 @@ You can name the function whatever you want, but the decorator must always speci
|
||||||
|
|
||||||
Called when the user bumps the bot.
|
Called when the user bumps the bot.
|
||||||
|
|
||||||
Return Example: ``{'type': 'new_bot_bump', 'data': {'user': '809377165534822410', 'at': 1631436624444}}``
|
Return Example: ``{type': 'new_bot_bump',
|
||||||
|
'data': {
|
||||||
|
'user': '809377165534822410',
|
||||||
|
'at': 1631436624444}
|
||||||
|
}``
|
||||||
|
|
||||||
.. function:: new_bot_comment
|
.. function:: new_bot_comment
|
||||||
|
|
||||||
Called when the user creates new comment.
|
Called when the user creates new comment.
|
||||||
|
|
||||||
Return Example: ``{'type': 'new_bot_comment', 'data': {'user': '704373738086465607', 'comment': {'old': None, 'new': 'boticord po jizni top'}, 'at': 1631439995678}}
|
Return Example: ``{'type': 'new_bot_comment',
|
||||||
``
|
'data': {
|
||||||
|
'user': '704373738086465607',
|
||||||
|
'comment': {
|
||||||
|
'old': None,
|
||||||
|
'new': 'boticord po jizni top'},
|
||||||
|
'at': 1631439995678}
|
||||||
|
}``
|
||||||
|
|
||||||
|
|
||||||
.. function:: edit_bot_comment
|
.. function:: edit_bot_comment
|
||||||
|
|
||||||
Called when the user edits his comment.
|
Called when the user edits his comment.
|
||||||
|
|
||||||
Return Example: ``{'type': 'edit_bot_comment', 'data': {'user': '585766846268047370', 'comment': {'old': 'Boticord eto horosho', 'new': 'Boticord horoshiy monitoring'}, 'at': 1631438224813}}``
|
Return Example: ``{
|
||||||
|
'type': 'edit_bot_comment',
|
||||||
|
'data': {
|
||||||
|
'user': '585766846268047370',
|
||||||
|
'comment': {
|
||||||
|
'old': 'Boticord eto horosho',
|
||||||
|
'new': 'Boticord horoshiy monitoring'},
|
||||||
|
'at': 1631438224813}}``
|
||||||
|
|
||||||
.. function:: delete_bot_comment
|
.. function:: delete_bot_comment
|
||||||
|
|
||||||
Called when the user deletes his comment.
|
Called when the user deletes his comment.
|
||||||
|
|
||||||
Return Example:
|
Return Example: ``{
|
||||||
{'type': 'delete_bot_comment', 'data': {'user': '704373738086465607', 'comment': 'допустим что я картофель', 'vote': 1, 'reason': 'self', 'at': 1631439759384}}
|
'type': 'delete_bot_comment',
|
||||||
|
'data': {
|
||||||
|
'user': '704373738086465607',
|
||||||
|
'comment': 'допустим что я картофель',
|
||||||
|
'vote': 1,
|
||||||
|
'reason': 'self',
|
||||||
|
'at': 1631439759384}}
|
||||||
|
|
Loading…
Reference in a new issue