require 'discordrb' bot = Discordrb::Commands::CommandBot.new ( token: TOKEN, client_id: CLIENT_ID, prefix:'/', ) bot.command :hello do |event| event.send_message("hallo,world.#{event.user.name}") end bot.run hello.rbと名前を付けて保存。 TOKENとCLIENT_IDについては後々説明します。 これで /hello と打つと、 hello,[UserName]. と返ってくるbotができました。 (hello,worldじゃないやん) DiscordにBotを登録する discordには登録しているものとして話を進めます。 登録してない方は -> https://discor
