1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-28 01:33:10 +00:00

Example links in readme direct to v2 examples (#184)

This commit is contained in:
Prophet 2021-01-28 13:45:57 -08:00 committed by GitHub
parent c43fe15964
commit 878b36fa2f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,14 +32,14 @@ A Golang library for the Discord API.
## Examples ## Examples
### [Simple](https://github.com/diamondburned/arikawa/tree/master/_example/simple) ### [Simple](https://github.com/diamondburned/arikawa/tree/v2/_example/simple)
Simple bot example without any state. All it does is logging messages sent into Simple bot example without any state. All it does is logging messages sent into
the console. Run with `BOT_TOKEN="TOKEN" go run .`. This example only the console. Run with `BOT_TOKEN="TOKEN" go run .`. This example only
demonstrates the most simple needs; in most cases, bots should use the state or demonstrates the most simple needs; in most cases, bots should use the state or
the bot router. the bot router.
### [Undeleter](https://github.com/diamondburned/arikawa/tree/master/_example/undeleter) ### [Undeleter](https://github.com/diamondburned/arikawa/tree/v2/_example/undeleter)
A slightly more complicated example. This bot uses a local state to cache A slightly more complicated example. This bot uses a local state to cache
everything, including messages. It detects when someone deletes a message, everything, including messages. It detects when someone deletes a message,
@ -49,7 +49,7 @@ This example demonstrates the PreHandler feature of the state library.
PreHandler calls all handlers that are registered (separately from the session), PreHandler calls all handlers that are registered (separately from the session),
calling them before the state is updated. calling them before the state is updated.
### [Advanced Bot](https://github.com/diamondburned/arikawa/tree/master/_example/advanced_bot) ### [Advanced Bot](https://github.com/diamondburned/arikawa/tree/v2/_example/advanced_bot)
A complex example demonstrating the reflect-based command router that's A complex example demonstrating the reflect-based command router that's
built-in. The router turns exported struct methods into commands, its arguments built-in. The router turns exported struct methods into commands, its arguments