0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Discord bot library partially based on Discordrb
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.15
~> 5.0
~> 10.0

Runtime

 Project Readme

MijDiscord

My Discord bot library that's partially based on Discordrb. Was made because I found Discordrb to be not satisfactory for my purposes.

TODO: Write goddamn documentation because there's currently none.

Installation

Add this line to your application's Gemfile:

gem 'mij-discord'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mij-discord

Usage

require "mij-discord"

bot = MijDiscord::Bot.new(client_id:<here client id>, token:<here token>)

bot.add_event(:create_message) do |event|
  event.channel.send_message(text: "Pong!") if event.content == "Ping!"
end

bot.connect(false)

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/Mijyuoon/MijDiscord.

License

The gem is available as open source under the terms of the MIT License.