vule022in

Make me a script that is a reminder for Discord, Store, Vote and the delay between each of them is like 5min and make it be smooth and nice

Kodari AI
KodariSep 9 at 7:22 pm 1
ReminderScheduler
A polished reminder system that broadcasts scheduled messages to Discord, Store, and Vote channels with a smooth 5-minute interval between each notification. Features a clean, visually appealing announcement format with timestamps, channel-specific styling, and automatic looping. Includes configurable message content, interval settings, and toggle commands for server admins to start, stop, or adjust the reminder cycle seamlessly.
Kodari can make mistakes. Review important code before using.
Files
discord-store-vote-reminders.sk
Code
1 71
discord-store-vote-reminders.sk
# Discord, Store and Vote reminders
# Place this file in: plugins/Skript/scripts/
# Reload with: /sk reload discord-store-vote-reminders

options:
    discord-link: https://discord.example.com
    store-link: https://store.example.com
    vote-link: https://vote.example.com

on script load:
    set {community.reminders.enabled} to true
    set {community.reminders.next} to 1
    send "&a[Reminders] &fDiscord, store and vote reminders enabled." to console

every 5 minutes:
    if {community.reminders.enabled} is true:
        if {community.reminders.next} is 1:
            broadcast ""
            broadcast "&8&m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
            broadcast "       &5&lJOIN OUR DISCORD"
            broadcast "&dChat with the community, get support and"
            broadcast "&dkeep up with the latest server news!"
            broadcast "&fJoin now: &b{@discord-link}"
            broadcast "&8&m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
            broadcast ""
            set {community.reminders.next} to 2

        else if {community.reminders.next} is 2:
            broadcast ""
            broadcast "&8&m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
            broadcast "          &6&lVISIT OUR STORE"
            broadcast "&eCheck out ranks, cosmetics and exclusive"
            broadcast "&eperks to improve your experience!"
            broadcast "&fVisit now: &6{@store-link}"
            broadcast "&8&m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
            broadcast ""
            set {community.reminders.next} to 3

        else:
            broadcast ""
            broadcast "&8&m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
            broadcast "           &a&lVOTE FOR THE SERVER"
            broadcast "&2Support the server and earn rewards"
            broadcast "&2by voting on our server lists!"
            broadcast "&fVote now: &a{@vote-link}"
            broadcast "&8&m━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━"
            broadcast ""
            set {community.reminders.next} to 1

command /reminders [<text>]:
    permission: reminders.admin
    permission message: "&cYou do not have permission to manage reminders."
    trigger:
        if arg-1 is "toggle":
            if {community.reminders.enabled} is true:
                set {community.reminders.enabled} to false
                send "&cCommunity reminders have been disabled." to player
            else:
                set {community.reminders.enabled} to true
                send "&aCommunity reminders have been enabled." to player
            stop

        if arg-1 is "status":
            if {community.reminders.enabled} is true:
                send "&aCommunity reminders are currently enabled." to player
            else:
                send "&cCommunity reminders are currently disabled." to player
            stop

        send "&e/reminders toggle &7- Enable or disable reminders." to player
        send "&e/reminders status &7- Check the current reminder status." to player