Last active
November 10, 2018 03:26
-
-
Save skytomo221/8f029c238a3cd7619b5e80b2f1416b2b to your computer and use it in GitHub Desktop.
さくらインターネットでdiscordrbを使ったボットを稼働させる ref: https://qiita.com/skytomo221/items/5d99d98187f9d2bf1d78
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
token | |
client_id |
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
require 'discordrb' | |
bot = Discordrb::Commands::CommandBot.new ( | |
token: File.read('token').chomp | |
client_id: File.read('client_id').chomp | |
prefix:'/', | |
) |
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
HjJhk7hjHJKj765.Gwrjid82b3y.jaHHuTrdsU7.TDwd6ud8aadawo02hdz |
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
ruby main.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment