Simp-O-Matic

Dumb Discord bot in TS.
git clone git://git.knutsen.co/Simp-O-Matic
Log | Files | Refs | README | LICENSE

commit 58e9fb4b563f965b48390b19e6d3fb1c86bbbdee
parent 3e5af0395b7a056fa02aaf7356a171b579ea7d86
Author: Demonstrandum <moi@knutsen.co>
Date:   Wed, 11 Nov 2020 03:16:45 +0000

Initialise prefetch object.

Diffstat:
Mlib/commands/vc.ts | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/commands/vc.ts b/lib/commands/vc.ts @@ -18,7 +18,8 @@ export default async(home_scope: HomeScope) => { const guild : string = message.guild.id; const GID : Types.GuildInstanceData = INSTANCE_VARIABLES.guilds[guild]; - if(!CONFIG.vc_queue) CONFIG.vc_queue = []; + if (!CONFIG.vc_queue) CONFIG.vc_queue = []; + if (!GID.vc_prefetch) GID.vc_prefetch = {}; const attempt_prefetch = (url: string): boolean => { let stream = null;