package dbothaxe;
import com.raidandfade.haxicord.commands.CommandBot;
import com.raidandfade.haxicord.types.Message;
class Main extends CommandBot {
static function main() {
new Main("<token>", Main, "-"); // Create an instance of Commandbot with the prefix `-`
}
@Command
function ping(message:Message) {
message.react("✅"); // React to the message with "✅"
message.reply({content: "Pong!"}); // Send "Pong!" in the same channel
}
}
dbothaxe/Main.hx:3: characters 8-52 : Type not found : com.raidandfade.haxicord.commands.CommandBot
dbothaxe/Main.hx:4: characters 8-46 : Type not found : com.raidandfade.haxicord.types.Message
dbothaxe/Main.hx:6: characters 20-30 : Type not found : CommandBot