!changelog command, slightly improved info command, foundation for voice features

This commit is contained in:
Runebaas 2017-11-11 19:31:31 +01:00
parent 12919acf95
commit b45370cf9e
No known key found for this signature in database
GPG key ID: 2677AF508D0300D6
5 changed files with 219 additions and 4 deletions

View 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);
}
}