From c54d497b1765789bad4632a0cc387a82c6de8820 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 7 Aug 2021 19:26:12 +0200 Subject: [PATCH] Fix Typos in attribute descriptions Signed-off-by: Knut Ahlers --- mod_streamSchedule.go | 4 ++-- wiki/Home.md | 11 ++--------- 2 files changed, 4 insertions(+), 11 deletions(-) diff --git a/mod_streamSchedule.go b/mod_streamSchedule.go index ddbda9c..8df5598 100644 --- a/mod_streamSchedule.go +++ b/mod_streamSchedule.go @@ -94,7 +94,7 @@ func (m modStreamSchedule) cronUpdateSchedule() { Description: m.attrs.MustString("embed_description", ptrStringEmpty), Fields: []*discordgo.MessageEmbedField{}, Thumbnail: &discordgo.MessageEmbedThumbnail{ - // @attr embed_thumbnail_url optional string "" Publically hosted image URL to u100se as thumbnail + // @attr embed_thumbnail_url optional string "" Publically hosted image URL to use as thumbnail URL: m.attrs.MustString("embed_thumbnail_url", ptrStringEmpty), // @attr embed_thumbnail_width optional int64 "" Width of the thumbnail Width: int(m.attrs.MustInt64("embed_thumbnail_width", ptrInt64Zero)), @@ -102,7 +102,7 @@ func (m modStreamSchedule) cronUpdateSchedule() { Height: int(m.attrs.MustInt64("embed_thumbnail_height", ptrInt64Zero)), }, Timestamp: time.Now().Format(time.RFC3339), - // @attr embed_title required string "" Title of the embed (used to find the managed post, must be unique for that channel) + // @attr embed_title required string "" Title of the embed Title: m.attrs.MustString("embed_title", nil), Type: discordgo.EmbedTypeRich, } diff --git a/wiki/Home.md b/wiki/Home.md index be62ac5..fb693bd 100644 --- a/wiki/Home.md +++ b/wiki/Home.md @@ -106,13 +106,6 @@ Updates the presence status of the bot to display the next stream | `cron` | | string | `* * * * *` | When to execute the module | | `schedule_past_time` | | duration | `15m` | How long in the past should the schedule contain an entry | -## Type: `reactionrole` - -Creates a post with pre-set reactions and assigns roles on reaction - -| Attribute | Req. | Type | Default Value | Description | -| --------- | :--: | ---- | ------------- | ----------- | - ## Type: `schedule` Posts stream schedule derived from Twitch schedule as embed in Discord channel @@ -120,7 +113,7 @@ Posts stream schedule derived from Twitch schedule as embed in Discord channel | Attribute | Req. | Type | Default Value | Description | | --------- | :--: | ---- | ------------- | ----------- | | `discord_channel_id` | ✅ | string | | ID of the Discord channel to post the message to | -| `embed_title` | ✅ | string | | Title of the embed (used to find the managed post, must be unique for that channel) | +| `embed_title` | ✅ | string | | Title of the embed | | `twitch_channel_id` | ✅ | string | | ID (not name) of the channel to fetch the schedule from | | `twitch_client_id` | ✅ | string | | Twitch client ID the token was issued for | | `twitch_token` | ✅ | string | | Token for the user the `twitch_channel_id` belongs to | @@ -128,7 +121,7 @@ Posts stream schedule derived from Twitch schedule as embed in Discord channel | `embed_color` | | int64 | `0x2ECC71` | Integer representation of the hex color for the embed | | `embed_description` | | string | | Description for the embed block | | `embed_thumbnail_height` | | int64 | | Height of the thumbnail | -| `embed_thumbnail_url` | | string | | Publically hosted image URL to u100se as thumbnail | +| `embed_thumbnail_url` | | string | | Publically hosted image URL to use as thumbnail | | `embed_thumbnail_width` | | int64 | | Width of the thumbnail | | `schedule_entries` | | int64 | `5` | How many schedule entries to add to the embed as fields | | `schedule_past_time` | | duration | `15m` | How long in the past should the schedule contain an entry |