Skip to content

Commit

Permalink
public username and fix message queue
Browse files Browse the repository at this point in the history
  • Loading branch information
KedamaOvO committed Sep 15, 2019
1 parent f518ac0 commit c029d06
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions OsuBotTransferClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class Message
public class OsuBotTransferClient : DefaultClient, IConfigurable
{
Queue<Message> messageBuffer = new Queue<Message>();
private Timer messgaeBufferTimer;
private Task messgaeBufferTimer;
private bool messgaeBufferTimerQuit = false;

private const string CONST_SYNC_NOTICE_HEADER = "\x01\x03\x01";
Expand Down Expand Up @@ -81,7 +81,7 @@ private set

public OsuBotTransferClient() : base("MikiraSora", "OsuBotTransferClient")
{
messgaeBufferTimer = new Timer(state=>
messgaeBufferTimer = Task.Run(()=>
{
while (!messgaeBufferTimerQuit)
{
Expand All @@ -104,6 +104,7 @@ public OsuBotTransferClient() : base("MikiraSora", "OsuBotTransferClient")
Thread.Sleep(1000);
}
});

}

public void onConfigurationLoad()
Expand Down Expand Up @@ -309,6 +310,7 @@ void RequestToken()
}

SendCommand(cmd);
//SendMessage(new IRCMessage(Target_User_Name.ToString(), "[OsuBotTransferClient]Sync wants to request other services that the Token uses to access the Bot. Reply \"!assign_token\" to generate and send a token to Sync."));
}
#endregion
}
Expand Down
1 change: 1 addition & 0 deletions PublicOsuBotTransferPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class PublicOsuBotTransferPlugin : Plugin, IConfigurable
OsuBotTransferClient client = new OsuBotTransferClient();
public const string VERSION = "1.3.0";
public string Token => client.Token;
public string Username => OsuBotTransferClient.Target_User_Name;

string temp_user_name;

Expand Down

0 comments on commit c029d06

Please sign in to comment.