Alex Nørgaard
7f05f7f6c0
Add converter example
4 years ago
Nadir Chowdhury
6c08f3d344
Add "Secret" channel/emoji example
4 years ago
Byambadalai Sumiya
35db712c16
Fix reaction_roles example logic
4 years ago
Kippiii
96059e5365
Add reaction roles example
4 years ago
SNVMK
169b61092a
Change reply example to use replies
4 years ago
Zomatree
4bce41f7aa
Add intents to examples
5 years ago
Xua
1fd87ad0ca
Add example on subclassing commands.Context
5 years ago
Geroyuni
8db7b5eb19
Fix volume command in basic voice example
source.volume takes floating point percentages, e.g. 1.0 for 100%
6 years ago
Rapptz
03fdd81531
Remove outdated playlist.py example.
Fixes #1870
6 years ago
Rapptz
caf3d17d4a
Rework entire cog system and partially document it and extensions.
6 years ago
Capn
dd5762d9ed
Add missing asyncio imports from the examples
7 years ago
PikalaxALT
7891afcec8
Remove deprecated ffmpeg/avconv flag from basic_voice example
7 years ago
Modelmat
1436af3b18
Removes redundant asyncio import
Not much point importing asyncio when it's not being used, it was there for when @asyncio.coroutine was used previously
7 years ago
Rapptz
00ee7549c9
Update new member example to not be broken.
Took forever but better late than never.
7 years ago
Daniel
27063a91c7
Improve basic_voice example
Add stream option and command so we don't always have to download a file
Move repeated voice check code to before_invoke hook
Add typing indicators when making YTDLSources
7 years ago
Daniel
6f42a5f2ec
Fixed broken code
I should have tested it.
8 years ago
Daniel
a037d469d7
Add basic rewrite voice example
8 years ago
Rapptz
e77012f4d9
Make all public is_ functions into methods instead of properties.
8 years ago
Rapptz
8c896e9fbc
Re-add Client.wait_until_ready
8 years ago
Rapptz
1e09432c45
Update examples to use the new generic wait_for.
8 years ago
Rapptz
f8a5d890fe
Update examples to match the new rewrite API.
8 years ago
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`.
9 years ago
Rapptz
493bffc685
Rework playlist example to work with multi-server voice.
9 years ago
Rapptz
72e84a1b47
Change all email/password pair examples to use token.
9 years ago
shrx
8c4f928684
Fix bug where playlist bot attempts to process replies in PMs.
9 years ago
Rapptz
8d76e7095e
Basic bot example now shows documenting for the built-in help command.
9 years ago
Rapptz
2ebfbbe471
Examples now use Python 3.5. Remove echo.py example.
9 years ago
Rapptz
246698254f
Add basic example bot showcasing the commands ext module.
9 years ago
Rapptz
ba3e00c3bf
Add guessing game example to showcase wait_for_message.
9 years ago
Rapptz
9175b83387
Add voice playlist example code.
9 years ago
Rapptz
bee044629d
Add background_task example to showcase background tasks.
9 years ago
Rapptz
6b12ef2a0c
Updated examples to use new properties.
9 years ago
Rapptz
e87d54dd12
Update example code.
9 years ago
Rapptz
d440e52a00
Add new_member.py example to showcase messaging new members.
9 years ago
Rapptz
90d9c9b297
reply.py example now checks for self-authoring
9 years ago
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.
9 years ago
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.
10 years ago
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.
10 years ago
Rapptz
7b3f31f25c
Make reply example a bit more meaningful.
10 years ago
Rapptz
bcee23b707
Fix echo example to not infinitely loop.
10 years ago
Rapptz
b102ac4b2a
Add the ability to edit messages.
10 years ago
Rapptz
ef7dd42f28
Add on_message_edit event.
10 years ago
Rapptz
794991adb6
Add the ability to delete messages
10 years ago
Rapptz
f580441c10
Add on_message_delete event and Client.messages attribute.
10 years ago
Rapptz
a90e804192
Add some examples
10 years ago