forked from viveksantayana/geas-bot
		
	Attempt to load Opus
This commit is contained in:
		@@ -68,6 +68,9 @@ class TCardCommand(commands.Cog, name='T-Card Command'):
 | 
			
		||||
				await ctx.send(content=f'```You have invoked the T-Card in the game {lookup[guildStr][str(role.id)]["game_title"]}. The GM has been notified privately.```', hidden=True)
 | 
			
		||||
			
 | 
			
		||||
			"""Do the audio thing."""
 | 
			
		||||
			discord.opus.load_opus()
 | 
			
		||||
			if not discord.opus.is_loaded():
 | 
			
		||||
				raise RuntimeError('Opus failed to load')
 | 
			
		||||
			for vc in ctx.channel.category.voice_channels:
 | 
			
		||||
				v = await vc.connect()
 | 
			
		||||
				tcardaudio = discord.FFmpegPCMAudio(open("./assets/tcard.wav", "rb"))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user