!changelog command, slightly improved info command, foundation for voice features
This commit is contained in:
parent
12919acf95
commit
b45370cf9e
5 changed files with 219 additions and 4 deletions
31
Geekbot.net/Lib/AudioClientCache.cs
Normal file
31
Geekbot.net/Lib/AudioClientCache.cs
Normal file
|
@ -0,0 +1,31 @@
|
|||
using System.Collections.Generic;
|
||||
using Discord.Audio;
|
||||
|
||||
namespace Geekbot.net.Lib
|
||||
{
|
||||
public class AudioUtils : IAudioUtils
|
||||
{
|
||||
private Dictionary<ulong, IAudioClient> _audioClients;
|
||||
|
||||
public AudioUtils()
|
||||
{
|
||||
_audioClients = new Dictionary<ulong, IAudioClient>();
|
||||
}
|
||||
|
||||
public IAudioClient GetAudioClient(ulong guildId)
|
||||
{
|
||||
return _audioClients[guildId];
|
||||
}
|
||||
|
||||
public void StoreAudioClient(ulong guildId, IAudioClient client)
|
||||
{
|
||||
_audioClients[guildId] = client;
|
||||
}
|
||||
}
|
||||
|
||||
public interface IAudioUtils
|
||||
{
|
||||
IAudioClient GetAudioClient(ulong guildId);
|
||||
void StoreAudioClient(ulong guildId, IAudioClient client);
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue