mirror of
https://gitlab.com/Kwoth/nadekobot.git
synced 2025-09-10 09:18:27 -04:00
Merge branch 'v4' into 4.3
This commit is contained in:
@@ -31,7 +31,8 @@
|
|||||||

|

|
||||||
- Click on **`DOWNLOAD`** at the lower right
|
- Click on **`DOWNLOAD`** at the lower right
|
||||||

|

|
||||||
- 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.
|
- 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 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).
|
- 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).
|
||||||
|
@@ -319,11 +319,14 @@ public class XpService : INService, IReadyExecutor, IExecNoCommand
|
|||||||
long newLevel,
|
long newLevel,
|
||||||
XpNotificationLocation notifyLoc)
|
XpNotificationLocation notifyLoc)
|
||||||
{
|
{
|
||||||
var user = await _client.GetUserAsync(userId);
|
if (notifyLoc == XpNotificationLocation.None)
|
||||||
|
return;
|
||||||
|
|
||||||
var guild = _client.GetGuild(guildId);
|
var guild = _client.GetGuild(guildId);
|
||||||
|
var user = guild?.GetUser(userId);
|
||||||
var ch = guild?.GetTextChannel(channelId);
|
var ch = guild?.GetTextChannel(channelId);
|
||||||
|
|
||||||
if (user is null || guild is null)
|
if (guild is null || user is null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
if (isServer)
|
if (isServer)
|
||||||
|
Reference in New Issue
Block a user