exys228 / HopeCommands

Library to make osu!hope plugins fully commandable.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)
	{
		// ...
	}
}

About

Library to make osu!hope plugins fully commandable.

License:The Unlicense


Languages

Language:C# 100.0%