From cd5367f72f835e3a36b276b279152a91ae9e4522 Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Fri, 26 May 2023 00:11:42 +0500 Subject: [PATCH] small changes --- README.md | 2 +- beatrun/gamemodes/beatrun/gamemode/cl/DiscordPresence.lua | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3a2a959..b5595f0 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # beatrun Modified beatrun's source code.
-There are lua modules, they are for Discord Rich Presence to work, if you want pure Lua just don't extract them, but your Level and Map will not be shown in your Discord status. +There are lua modules ([source](https://github.com/fluffy-servers/gmod-discord-rpc)), they are for Discord Rich Presence to work, if you want pure Lua just don't extract them, but your Level and Map will not be shown in your Discord status. ## Changes added by me * [Custom online courses service](https://courses.beatrun.ru)! DM @Jonny_Bro#4226 for an API key. diff --git a/beatrun/gamemodes/beatrun/gamemode/cl/DiscordPresence.lua b/beatrun/gamemodes/beatrun/gamemode/cl/DiscordPresence.lua index ec13f13..c574324 100644 --- a/beatrun/gamemodes/beatrun/gamemode/cl/DiscordPresence.lua +++ b/beatrun/gamemodes/beatrun/gamemode/cl/DiscordPresence.lua @@ -1,4 +1,5 @@ -if file.Find("lua/bin/gmcl_gdiscord_*.dll", "GAME")[1] == nil then return end +if file.Find("lua/bin/gmcl_gdiscord_*.dll", "GAME") == nil then return end + require("gdiscord") local image = "default"