-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 41 additions & 0 deletions
41
src/main/java/com/softawii/capivara/listeners/CalendarGroup.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
package com.softawii.capivara.listeners; | ||
|
||
import com.softawii.curupira.annotations.IArgument; | ||
import com.softawii.curupira.annotations.ICommand; | ||
import com.softawii.curupira.annotations.IGroup; | ||
import net.dv8tion.jda.api.Permission; | ||
import net.dv8tion.jda.api.events.interaction.command.SlashCommandInteractionEvent; | ||
import net.dv8tion.jda.api.interactions.commands.OptionType; | ||
|
||
@IGroup(name = "Calendar", description = "Calendar events", hidden = false) | ||
public class CalendarGroup { | ||
|
||
@ICommand(name = "Subscribe", description = "Subscribe to a Google Calendar", permissions = {Permission.ADMINISTRATOR}) | ||
@IArgument(name = "Calendar ID", description = "The ID of the calendar to subscribe to", required = true) | ||
@IArgument(name = "Name", description = "The name to use for the calendar", required = true) | ||
@IArgument(name = "Channel", description = "The channel where events will be announced", required = true, type = OptionType.CHANNEL) | ||
@IArgument(name = "Role", description = "The role to be pinged when events begin", required = false, type = OptionType.ROLE) | ||
public static void subscribe(SlashCommandInteractionEvent event) { | ||
event.reply("Not implemented yet").queue(); | ||
} | ||
|
||
@ICommand(name = "Unsubscribe", description = "Unsubscribe from a Google Calendar", permissions = {Permission.ADMINISTRATOR}) | ||
@IArgument(name = "Name", description = "The name to use for the calendar", required = true) | ||
public static void unsubscribe(SlashCommandInteractionEvent event) { | ||
event.reply("Not implemented yet").queue(); | ||
} | ||
|
||
@ICommand(name = "list", description = "List all events from a Google Calendar") | ||
@IArgument(name = "Name", description = "The name to use for the calendar", required = false) | ||
public static void list(SlashCommandInteractionEvent event) { | ||
event.reply("Not implemented yet").queue(); | ||
} | ||
|
||
@ICommand(name = "Update", description = "Update configuration of a calendar", permissions = {Permission.ADMINISTRATOR}) | ||
@IArgument(name = "Name", description = "The name to use for the calendar", required = true) | ||
@IArgument(name = "Channel", description = "The channel where events will be announced", required = true, type = OptionType.CHANNEL) | ||
@IArgument(name = "Role", description = "The role to be pinged when events begin", required = false, type = OptionType.ROLE) | ||
public static void update(SlashCommandInteractionEvent event) { | ||
event.reply("Not implemented yet").queue(); | ||
} | ||
} |