From 4f0179ffb084191fb3715d8aaa529b4294e0a61d Mon Sep 17 00:00:00 2001 From: DeJay Date: Tue, 20 Feb 2018 18:52:04 -0500 Subject: [PATCH] Update building_block_listeners.md Properly spells Message, as spelt in https://b1naryth1ef.github.io/disco/api/disco_gateway_events.html --- docs/bot_tutorial/building_block_listeners.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/bot_tutorial/building_block_listeners.md b/docs/bot_tutorial/building_block_listeners.md index 37f985c..f123a9e 100644 --- a/docs/bot_tutorial/building_block_listeners.md +++ b/docs/bot_tutorial/building_block_listeners.md @@ -16,7 +16,7 @@ Change the `'EventName'` in the `.listen()` method to the event name you want to This listener will listen for a new message and will reply with the exact same message every time. ```py -@Plugin.listen('MesageCreate') +@Plugin.listen('MessageCreate') def on_message_create(self, event): event.reply(event.message.content) ``` @@ -37,7 +37,7 @@ These are all the listeners we created in this tutorial: ```py class MyPlugin(Plugin): - @Plugin.listen('MesageCreate') + @Plugin.listen('MessageCreate') def on_message_create(self, event): event.reply(event.message.content)