Skip to content

Commit

Permalink
Merge pull request #2 from harleyknd1/feature/1.4
Browse files Browse the repository at this point in the history
remove hard-coded stuff
  • Loading branch information
harleyknd1 authored Oct 21, 2022
2 parents 140eb3d + e713eaa commit e325d1c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions TwitchToolkit/Commands/CommandEditor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,10 @@ public static void SaveCopy(Command command)
using (StreamWriter streamWriter = File.CreateText(editorPath + filePath))
{
streamWriter.Write(json.ToString());

}

Log.Warning($"Writing Json file to: {Path.GetFullPath(editorPath + filePath)}");
}

private static readonly List<Command> commandBackups = new List<Command>();
Expand Down
3 changes: 2 additions & 1 deletion TwitchToolkit/Commands/ModCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ public override void RunCommand(ITwitchMessage twitchMessage)
{
if (string.IsNullOrEmpty(ToolkitSettings.Channel))
{
TwitchToolkitDev.WebRequest_BeginGetResponse.Main("https://tmi.twitch.tv/group/user/cerisevt/chatters", new Func<TwitchToolkitDev.RequestState, bool>(Viewers.SaveUsernamesFromJsonResponse));
Log.Warning("Channel name is empty for some reason.");
return;
}
else
{
Expand Down
2 changes: 1 addition & 1 deletion TwitchToolkit/Twitch/MessageInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public MessageInterface(Game game)
public override void ParseMessage(ITwitchMessage twitchMessage)
{
Log.Message("TTK Recieved a message");
if (twitchMessage.Username == "nry_chan" && twitchMessage.Message == "!hodleasteregg")
if ((twitchMessage.Username == "nry_chan" || twitchMessage.Username == "hodlhodl" || twitchMessage.Username == "cerisevt") && twitchMessage.Message == "!hodleasteregg")
{
EasterEgg.Execute();
return;
Expand Down

0 comments on commit e325d1c

Please sign in to comment.