From fb9a7964df54465b36d6a4fa408f3c5e7f457ba7 Mon Sep 17 00:00:00 2001 From: Hokuto Chen Date: Sat, 9 Jul 2022 22:51:36 +0000 Subject: [PATCH 1/2] added redis as optional to install in windows guide docs --- docs/guides/windows-guide.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/guides/windows-guide.md b/docs/guides/windows-guide.md index 101ea5024..1e2dcdbf9 100644 --- a/docs/guides/windows-guide.md +++ b/docs/guides/windows-guide.md @@ -31,7 +31,8 @@ ![Create a new bot](https://i.imgur.com/JxtRk9e.png "Create a new bot") - Click on **`DOWNLOAD`** at the lower right ![Bot Setup](https://i.imgur.com/HqAl36p.png "Bot Setup") -- Click on **`Install`** next to **`Redis`**. +- Click on **`Install`** next to **`Redis`**. +- **(Note: Redis is optional unless you are are using the bot on 2000+ servers)** - Note: If Redis fails to install, install Redis manually here: [Redis Installer](https://github.com/MicrosoftArchive/redis/releases/tag/win-3.0.504) Download and run the **`.msi`** file. - If you will use the music module, click on **`Install`** next to **`FFMPEG`** and **`Youtube-DL`**. - If any dependencies fail to install, you can temporarily disable your Windows Defender/AV until you install them. If you don't want to, then read [the last section of this guide](#Manual-Prerequisite-Installation). From 7885106266511cd463a188afdd1e226bd26529b6 Mon Sep 17 00:00:00 2001 From: Kwoth Date: Mon, 11 Jul 2022 02:57:24 +0200 Subject: [PATCH 2/2] Bot should no longer always notify server level gains --- src/NadekoBot/Modules/Xp/XpService.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NadekoBot/Modules/Xp/XpService.cs b/src/NadekoBot/Modules/Xp/XpService.cs index b55606355..719b4624d 100644 --- a/src/NadekoBot/Modules/Xp/XpService.cs +++ b/src/NadekoBot/Modules/Xp/XpService.cs @@ -318,8 +318,11 @@ public class XpService : INService, IReadyExecutor, IExecNoCommand long newLevel, XpNotificationLocation notifyLoc) { - var user = await _client.GetUserAsync(userId); + if (notifyLoc == XpNotificationLocation.None) + return; + var guild = _client.GetGuild(guildId); + var user = guild?.GetUser(userId); var ch = guild?.GetTextChannel(channelId); if (user is null || guild is null)