Sha256: cebfa37966fe6d87defa9984db30799a05ff426a19888b8cd2249f409a63fe53
Contents?: true
Size: 444 Bytes
Versions: 4
Compression:
Stored size: 444 Bytes
Contents
# frozen_string_literal: true require "discorb" client = Discorb::Client.new client.once :standby do puts "Logged in as #{client.user}" end client.slash( "admin", "You can run this command if you have Administrator permission", dm_permission: false, default_permission: Discorb::Permission.from_keys(:administrator), ) do |interaction, _name| interaction.post("Hello, admin!") end client.run(ENV.fetch("DISCORD_BOT_TOKEN", nil))
Version data entries
4 entries across 4 versions & 1 rubygems