27 Commits

Author SHA1 Message Date
Rapptz
8c896e9fbc Re-add Client.wait_until_ready 2017-01-29 20:33:48 -05:00
Rapptz
1e09432c45 Update examples to use the new generic wait_for. 2017-01-26 04:30:47 -05:00
Rapptz
f8a5d890fe Update examples to match the new rewrite API. 2017-01-03 20:58:11 -05:00
Rapptz
d914c0a4e4 Clarify on_ready triggering more than twice.
On that note, fix the background_task example to use `Client.run`
instead of manual loop management. That way the task will be cleaned
up and cancelled inside `Client.run`.
2016-06-10 20:16:21 -04:00
Rapptz
493bffc685 Rework playlist example to work with multi-server voice. 2016-05-12 06:06:39 -04:00
Rapptz
72e84a1b47 Change all email/password pair examples to use token. 2016-04-08 22:02:38 -04:00
shrx
8c4f928684 Fix bug where playlist bot attempts to process replies in PMs. 2016-03-02 23:24:04 -05:00
Rapptz
8d76e7095e Basic bot example now shows documenting for the built-in help command. 2016-01-12 01:29:37 -05:00
Rapptz
2ebfbbe471 Examples now use Python 3.5. Remove echo.py example. 2016-01-06 11:34:49 -05:00
Rapptz
246698254f Add basic example bot showcasing the commands ext module. 2016-01-05 00:07:07 -05:00
Rapptz
ba3e00c3bf Add guessing game example to showcase wait_for_message. 2015-12-19 23:57:42 -05:00
Rapptz
9175b83387 Add voice playlist example code. 2015-12-19 23:06:22 -05:00
Rapptz
bee044629d Add background_task example to showcase background tasks. 2015-12-19 20:40:06 -05:00
Rapptz
6b12ef2a0c Updated examples to use new properties. 2015-12-19 20:27:40 -05:00
Rapptz
e87d54dd12 Update example code. 2015-12-06 03:10:18 -05:00
Rapptz
d440e52a00 Add new_member.py example to showcase messaging new members. 2015-11-27 18:30:20 -05:00
Rapptz
90d9c9b297 reply.py example now checks for self-authoring 2015-11-27 18:01:52 -05:00
Rapptz
af9e5bc67a Simplify examples to no longer use logging or Client.is_logged_in
The logging module is no longer required to get diagnostic output
since we use `stderr` by default regardless of the logging module.
Which means that the logging module will only give a more verbose
output than is necessary.

Client.is_logged_in checking is no longer necessary since all HTTP
request handling now raise an exception if they fail so those chunks
are also gone.
2015-11-26 19:30:09 -05:00
Hornwitser
ea2f35fb24 Set up logging module in examples
Without setting up the logging module, a god number of error conditions
and warnings will never be output by the library.  This is a common
pitfall to forget and it's not documented good enough the consequences
of not setting up the logging module when developing applications with
this library.
2015-10-06 19:09:16 +02:00
Hornwitser
a98324fbf8 Add handling of login failure in examples
Check and handle login failure in the examples provided for using this
library.  This is a common error condition that should be handled by any
script using this library.
2015-10-06 19:09:16 +02:00
Rapptz
7b3f31f25c Make reply example a bit more meaningful. 2015-10-05 03:29:04 -04:00
Rapptz
bcee23b707 Fix echo example to not infinitely loop. 2015-10-05 03:28:25 -04:00
Rapptz
b102ac4b2a Add the ability to edit messages. 2015-08-21 22:54:12 -04:00
Rapptz
ef7dd42f28 Add on_message_edit event. 2015-08-21 22:02:03 -04:00
Rapptz
794991adb6 Add the ability to delete messages 2015-08-21 20:58:51 -04:00
Rapptz
f580441c10 Add on_message_delete event and Client.messages attribute. 2015-08-21 18:55:57 -04:00
Rapptz
a90e804192 Add some examples 2015-08-21 18:24:04 -04:00