Added event link display for created event

This commit is contained in:
mctaylors 2022-10-23 13:39:59 +03:00 committed by Octol1ttle
parent 58eceab771
commit 6fa4a24d4c
Signed by: Octol1ttle
GPG key ID: B77C34313AEE1FFF
6 changed files with 2176 additions and 1074 deletions

File diff suppressed because it is too large Load diff

View file

@ -129,7 +129,7 @@ public static class EventHandler {
await Utils.SilentSendAsync(channel,
string.Format(Messages.EventCreated, "\n", roleMention, scheduledEvent.Creator.Mention,
Utils.Wrap(scheduledEvent.Name), location,
scheduledEvent.StartTime.ToUnixTimeSeconds().ToString(), Utils.Wrap(scheduledEvent.Description)),
scheduledEvent.StartTime.ToUnixTimeSeconds().ToString(), Utils.Wrap(scheduledEvent.Description), guild.Id, scheduledEvent.Id),
true);
}
if (eventConfig["EventEarlyNotificationOffset"] != "0") {

File diff suppressed because it is too large Load diff

View file

@ -166,7 +166,7 @@
<value>I cannot use time-outs on other bots! Try to set a mute role in settings</value>
</data>
<data name="EventCreated" xml:space="preserve">
<value>{1}{2} created event {3}! It will take place in {4} and will start &lt;t:{5}:R&gt;!{0}{6}</value>
<value>{1}{2} created event {3}! It will take place in {4} and will start &lt;t:{5}:R&gt;!{0}{6}{0}https://discord.com/events/{7}/{8}</value>
</data>
<data name="SettingsEventNotifyReceiverRole" xml:space="preserve">
<value>Role for event creation notifications</value>

View file

@ -157,7 +157,7 @@
<value>Начальная роль</value>
</data>
<data name="EventCreated" xml:space="preserve">
<value>{1}{2} создал событие {3}! Оно пройдёт в {4} и начнётся &lt;t:{5}:R&gt;!{0}{6}</value>
<value>{1}{2} создал событие {3}! Оно пройдёт в {4} и начнётся &lt;t:{5}:R&gt;!{0}{6}{0}https://discord.com/events/{7}/{8}</value>
</data>
<data name="SettingsEventNotifyReceiverRole" xml:space="preserve">
<value>Роль для уведомлений о создании событий</value>

View file

@ -153,7 +153,7 @@
<value>базовое звание</value>
</data>
<data name="EventCreated" xml:space="preserve">
<value>{1}{2} приготовил новый квест {3}! он пройдёт в {4} и начнётся &lt;t:{5}:R&gt;!{0}{6}</value>
<value>{1}{2} приготовил новый квест {3}! он пройдёт в {4} и начнётся &lt;t:{5}:R&gt;!{0}{6}{0}https://discord.com/events/{7}/{8}</value>
</data>
<data name="SettingsEventNotifyReceiverRole" xml:space="preserve">
<value>роль для уведомлений о создании квеста</value>