Skip to content

Latest commit

 

History

History
35 lines (27 loc) · 784 Bytes

README.md

File metadata and controls

35 lines (27 loc) · 784 Bytes

HopeCommands

Making osu!hope plugins fully commandable.

Note that you will need to fix project's HOPEless and osu.Shared references.

Example usage:

using exys228.HopeCommands;

public class SomePlugin : CommandBase, IHopePlugin
{
	// ...
	
	private const string PluginName = "SomePlugin";
	private const string ChannelName = "#somechannel";
	
	public SomePlugin() : base(PluginName, ChannelName)
	{
		
	}
	
	public void Load()
	{
		AddCommand("test", "print some text", delegate (string[] args)
		{
			SendPlayerMessage(PluginName, "yo", ChannelName, 0);
		});
	}
	
	private void SendPlayerMessage(string sender, string message, string channel, int senderid)
	{
		// ...
	}
}