Add avocado reaction to all messages by user 148542729658302464
This commit is contained in:
parent
001b937415
commit
e96d469c5a
1 changed files with 27 additions and 14 deletions
|
@ -34,6 +34,8 @@ namespace Geekbot.net
|
|||
//
|
||||
|
||||
public Task RunCommand(SocketMessage messageParam)
|
||||
{
|
||||
try
|
||||
{
|
||||
var message = messageParam as SocketUserMessage;
|
||||
if (message == null) return Task.CompletedTask;
|
||||
|
@ -50,12 +52,23 @@ namespace Geekbot.net
|
|||
message.Channel.SendMessageAsync("hui!!!");
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
if (message.Author.Id == 148542729658302464)
|
||||
{
|
||||
var avocado = new Emoji("🥑");
|
||||
var avocadoAdder = message.AddReactionAsync(avocado);
|
||||
}
|
||||
if (!(message.HasCharPrefix('!', ref argPos) ||
|
||||
message.HasMentionPrefix(_client.CurrentUser, ref argPos))) return Task.CompletedTask;
|
||||
var context = new CommandContext(_client, message);
|
||||
var commandExec = _commands.ExecuteAsync(context, argPos, _servicesProvider);
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
_logger.Error(e, "[Geekbot] Failed to run commands");
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
||||
public Task UpdateStats(SocketMessage messsageParam)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue