Skip to content

ankallio/mattermost-services-support

Repository files navigation

mattermost-services-support Project

Use on other Quarkus projects

Include as dependency:

<dependency>
	<groupId>io.kall</groupId>
	<artifactId>mattermost-services-support</artifactId>
	<version>1.0.0-SNAPSHOT</version>
</dependency>

Implement the slash command endpoint:

@Path("command")
public class CommandResource extends io.kall.mattermost.slashcommand.SlashCommandResource {
	// Override methods to customize
}

Provide a slash command processor:

@ApplicationScoped
public class MyProcessor extends io.kall.mattermost.slashcommand.SlashCommandProcessor {
	
	@ConfigProperty(name = "slashcommand.token")
	String configuredToken;
	
	@Override
	protected String getConfiguredToken() {
		return configuredToken;
	}
	
	@Override
	protected SlashCommandResponse runCommand(SlashCommandParams params) {
		// Implement
	}
}

About

Support library for Quarkus based Mattermost services

Resources

Stars

Watchers

Forks

Packages

 
 
 

Languages