Пример #1
0
    public override void Handle(TwitchUser data, GameClient client)
    {
        var viewer = ViewerManager.GetViewer(data);

        Game.Creature.Pet(viewer);

        client.SendMessage(data.Username, $"You pet Baby Yoda!");
    }
Пример #2
0
 public override void Handle(TwitchUser data, GameClient client)
 {
     try
     {
         var viewer = ViewerManager.GetViewer(data);
         if (Game.Creature.Feed(viewer))
         {
             client.SendMessage(data.Username, $"You gave Baby Yoda some food!");
         }
     }
     catch (Exception exc)
     {
         client.SendMessage(data.Username, exc.ToString());
     }
 }