Skip to content

exys228/HopeCommands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages