revoltrb 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +16 -2
- data/lib/revoltrb/bot.rb +538 -537
- data/lib/revoltrb/version.rb +1 -1
- data/lib/revoltrb/webhooks.rb +108 -0
- data/lib/revoltrb.rb +6 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4a47d743074af0c8a29f14e720df6488e8db97c325c721e52fa5c110ffc2b8ba
|
|
4
|
+
data.tar.gz: cc98be2028dd30a7089fd1e0e5ee83fb62a518cac32812184cd6c8e0b6974fe0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 014fbf6c33d831f9b7804299454e57017aa684fe84184a8ddbd21711cac2771ca0ef537592bb113d27e2870e9260c2c97eac00dd09d9fba9f579110dcfa69207
|
|
7
|
+
data.tar.gz: 718a3ad4ca444aa2ca55fd451190ae937e6fbff8f19f22aed7f935869085527279e0a9bb04736f437a9bf9752f7ac1005e21f61148906ed116cb9e1d9e87df80
|
data/README.md
CHANGED
|
@@ -11,7 +11,6 @@ You need Ruby 3.0 or newer in order to use this package (Ruby 3.2 or newer is re
|
|
|
11
11
|
|
|
12
12
|
This list contains a list of things that I know is broken and gotta fix. Contributing will be super helpful.
|
|
13
13
|
|
|
14
|
-
- Fix obtaining server information
|
|
15
14
|
- Fix reactions support
|
|
16
15
|
|
|
17
16
|
## Setup
|
|
@@ -20,7 +19,7 @@ You can install Revoltrb through several methods:
|
|
|
20
19
|
|
|
21
20
|
#### Method 1: Install from rubygems.org (Bundler)
|
|
22
21
|
|
|
23
|
-
Add the following to your Gemfile file and run the "bundle install" command:
|
|
22
|
+
Add the following to your Gemfile file and run the "[bundle install](https://rubygems.org/gems/revoltrb)" command:
|
|
24
23
|
|
|
25
24
|
```ruby
|
|
26
25
|
gem 'discordrb'
|
|
@@ -105,6 +104,21 @@ ensure
|
|
|
105
104
|
end
|
|
106
105
|
```
|
|
107
106
|
|
|
107
|
+
Webhook example:
|
|
108
|
+
|
|
109
|
+
```ruby
|
|
110
|
+
require 'revoltrb'
|
|
111
|
+
# Webhook url should look like this: https://beta.revolt.chat/api/webhooks/<WEBHOOK_ID>/<WEBHOOK_TOKEN>
|
|
112
|
+
# Webhook urls can be obtained and created through beta.revolt.chat
|
|
113
|
+
WEBHOOK_ID = ''
|
|
114
|
+
WEBHOOK_TOKEN = ''
|
|
115
|
+
webhook = RevoltWebhooks::Webhook.new(WEBHOOK_ID, WEBHOOK_TOKEN)
|
|
116
|
+
|
|
117
|
+
webhook.send_message(
|
|
118
|
+
content: "Revoltrb webhook message content",
|
|
119
|
+
)
|
|
120
|
+
```
|
|
121
|
+
|
|
108
122
|
## Support and Help
|
|
109
123
|
|
|
110
124
|
If you need help with this ruby package (a.k.a. Gem), feel free to join the [Roxanne Studios Revolt Server](https://rvlt.gg/r4Ee2R1Z) and use the REVOLTRB category to talk about this package.
|