discord-pomodoro 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.env.sample +2 -2
- data/CHANGELOG.md +6 -0
- data/Gemfile.lock +1 -1
- data/README.md +6 -6
- data/lib/discord/pomodoro/bot.rb +2 -2
- data/lib/discord/pomodoro/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 55391f0ce3471f5da4c514bd4286a15ea58941a312f4a9115549cce60a239cb5
|
4
|
+
data.tar.gz: c097573c3bded7d89bf5bcb7a7f67ec17dfedd39eca69c363968ecd3ce5d37fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ff574d1e1560a3f4a7a72cb6c650a275f2c27a1da6a53356b33abb1000372ac3a88300eec537689b6f02f9af92912d73354d576daea3ce808ff4df8fda06141e
|
7
|
+
data.tar.gz: 3ea59756cc714ba802bc643e705c30c90206d425826726ea5408c96cec03dedc313247a8f564dadfed4ddc3c8f2aec48ba0e3fc27c522ba8889be0aaefbe3e5c
|
data/.env.sample
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
DISCORD_POMODORO_DISCORD_BOT_TOKEN=xxxxxx
|
2
|
+
DISCORD_POMODORO_DISCORD_VOICE_CHANNEL_ID=xxxxxx
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -23,16 +23,16 @@
|
|
23
23
|
```sh
|
24
24
|
git clone https://github.com/megane42/discord-pomodoro.git
|
25
25
|
cd discord-pomodoro
|
26
|
-
echo
|
27
|
-
echo
|
26
|
+
echo DISCORD_POMODORO_DISCORD_BOT_TOKEN=****** >> .env
|
27
|
+
echo DISCORD_POMODORO_DISCORD_VOICE_CHANNEL_ID=****** >> .env
|
28
28
|
docker-compose run --rm app
|
29
29
|
```
|
30
30
|
|
31
31
|
### Docker way
|
32
32
|
|
33
33
|
```sh
|
34
|
-
export
|
35
|
-
export
|
34
|
+
export DISCORD_POMODORO_DISCORD_BOT_TOKEN=******
|
35
|
+
export DISCORD_POMODORO_DISCORD_VOICE_CHANNEL_ID=******
|
36
36
|
docker run --rm -it megane42/discord-pomodoro
|
37
37
|
```
|
38
38
|
|
@@ -41,8 +41,8 @@ docker run --rm -it megane42/discord-pomodoro
|
|
41
41
|
```sh
|
42
42
|
sudo apt-get install libsodium-dev libopus-dev ffmpeg
|
43
43
|
gem install discord-pomodoro
|
44
|
-
export
|
45
|
-
export
|
44
|
+
export DISCORD_POMODORO_DISCORD_BOT_TOKEN=******
|
45
|
+
export DISCORD_POMODORO_DISCORD_VOICE_CHANNEL_ID=******
|
46
46
|
discord-pomodoro
|
47
47
|
```
|
48
48
|
|
data/lib/discord/pomodoro/bot.rb
CHANGED
@@ -20,11 +20,11 @@ module Discord
|
|
20
20
|
private
|
21
21
|
|
22
22
|
def bot
|
23
|
-
@bot ||= Discordrb::Bot.new token: ENV["
|
23
|
+
@bot ||= Discordrb::Bot.new token: ENV["DISCORD_POMODORO_DISCORD_BOT_TOKEN"]
|
24
24
|
end
|
25
25
|
|
26
26
|
def voice_bot
|
27
|
-
@voice_bot ||= bot.voice_connect(ENV["
|
27
|
+
@voice_bot ||= bot.voice_connect(ENV["DISCORD_POMODORO_DISCORD_VOICE_CHANNEL_ID"])
|
28
28
|
end
|
29
29
|
|
30
30
|
def connect_voice_bot
|