File tree Expand file tree Collapse file tree
kotlin/io/github/gnuf0rce/mirai/github/command
resources/META-INF/services Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ package io.github.gnuf0rce.mirai.github.command
2+
3+ import io.github.gnuf0rce.mirai.github.*
4+ import net.mamoe.mirai.console.command.*
5+
6+ public object GitHubUpdateCommand : SimpleCommand(
7+ owner = GitHubHelperPlugin ,
8+ " update" ,
9+ description = " Update Plugin of GitHub Release"
10+ ) {
11+ @Handler
12+ public fun ConsoleCommandSender.handle () {
13+ try {
14+ GitHubReleasePluginUpdater .update()
15+ } catch (cause: Throwable ) {
16+ logger.warning(name, cause)
17+ }
18+ }
19+ }
Original file line number Diff line number Diff line change @@ -4,4 +4,5 @@ io.github.gnuf0rce.mirai.github.command.GitHubRepoCommitCommand
44io.github.gnuf0rce.mirai.github.command.GitHubRepoIssueCommand
55io.github.gnuf0rce.mirai.github.command.GitHubRepoPullCommand
66io.github.gnuf0rce.mirai.github.command.GitHubRepoReleaseCommand
7- io.github.gnuf0rce.mirai.github.command.GitHubStatsCommand
7+ io.github.gnuf0rce.mirai.github.command.GitHubStatsCommand
8+ io.github.gnuf0rce.mirai.github.command.GitHubUpdateCommand
You can’t perform that action at this time.
0 commit comments