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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca798ce99b1d4be90dc94345fa2240368ce1b1a813cd3ebc9b6ac0cd07b4457a
4
- data.tar.gz: 934b4781b48f099a1d1fd1a54abe0db88a927ab985e49e36a0208da9a83b43aa
3
+ metadata.gz: 55391f0ce3471f5da4c514bd4286a15ea58941a312f4a9115549cce60a239cb5
4
+ data.tar.gz: c097573c3bded7d89bf5bcb7a7f67ec17dfedd39eca69c363968ecd3ce5d37fb
5
5
  SHA512:
6
- metadata.gz: 264561a0ad2c0b24de9cd9b895276b8d53b1fe95ffa5e6cf50475e1e639bc228bb0829b26ee610b4381ed44612f95d857e4be83e21ecc98f343f83afbe776281
7
- data.tar.gz: 45ce3827569fe3c0f2a34d285dd2a9095e5ba873b3201c2b2e0dde6a4a4215d4ec2ac2ea70d7155f30d619c9f3b49968a84aabc13ba506be1b7670d50349f91e
6
+ metadata.gz: ff574d1e1560a3f4a7a72cb6c650a275f2c27a1da6a53356b33abb1000372ac3a88300eec537689b6f02f9af92912d73354d576daea3ce808ff4df8fda06141e
7
+ data.tar.gz: 3ea59756cc714ba802bc643e705c30c90206d425826726ea5408c96cec03dedc313247a8f564dadfed4ddc3c8f2aec48ba0e3fc27c522ba8889be0aaefbe3e5c
data/.env.sample CHANGED
@@ -1,2 +1,2 @@
1
- DISCORD_BOT_TOKEN=xxxxxx
2
- DISCORD_VOICE_CHANNEL_ID=xxxxxx
1
+ DISCORD_POMODORO_DISCORD_BOT_TOKEN=xxxxxx
2
+ DISCORD_POMODORO_DISCORD_VOICE_CHANNEL_ID=xxxxxx
data/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.0] - 2022-07-10
4
+
5
+ ### Changed
6
+
7
+ - Change env-var names to add namespace.
8
+
3
9
  ## [0.1.1] - 2022-07-10
4
10
 
5
11
  ### Fixed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- discord-pomodoro (0.1.1)
4
+ discord-pomodoro (0.2.0)
5
5
  discordrb (~> 3.4)
6
6
  rufus-scheduler (~> 3.8)
7
7
 
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 DISCORD_BOT_TOKEN=****** >> .env
27
- echo DISCORD_VOICE_CHANNEL_ID=****** >> .env
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 DISCORD_BOT_TOKEN=******
35
- export DISCORD_VOICE_CHANNEL_ID=******
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 DISCORD_BOT_TOKEN=******
45
- export DISCORD_VOICE_CHANNEL_ID=******
44
+ export DISCORD_POMODORO_DISCORD_BOT_TOKEN=******
45
+ export DISCORD_POMODORO_DISCORD_VOICE_CHANNEL_ID=******
46
46
  discord-pomodoro
47
47
  ```
48
48
 
@@ -20,11 +20,11 @@ module Discord
20
20
  private
21
21
 
22
22
  def bot
23
- @bot ||= Discordrb::Bot.new token: ENV["DISCORD_BOT_TOKEN"]
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["DISCORD_VOICE_CHANNEL_ID"])
27
+ @voice_bot ||= bot.voice_connect(ENV["DISCORD_POMODORO_DISCORD_VOICE_CHANNEL_ID"])
28
28
  end
29
29
 
30
30
  def connect_voice_bot
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Discord
4
4
  module Pomodoro
5
- VERSION = "0.1.1"
5
+ VERSION = "0.2.0"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: discord-pomodoro
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - megane42