mumbletune 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/docs/commands.md CHANGED
@@ -4,10 +4,12 @@ play <track> Queue this song.
4
4
  play <artist> Queue 10 tracks by this artist.
5
5
  play <album> Queue this entire album.
6
6
  play <something> now Play this shit right now!
7
- what Gets what is playing, and what is queued.
7
+ what Show what is playing, and what is queued.
8
8
  next Jump to the next song in the queue.
9
- clear Clears the current queue.
9
+ undo Undo the last addition to the queue.
10
+ clear Clear the queue.
10
11
  volume? Get the current volume level.
11
12
  volume [0-100] Set the volume.
12
- wisdom Obtain it.
13
- ------ ------
13
+ ------ ------
14
+
15
+ <!-- Generate HTML with: $ pandoc -f markdown -->
@@ -110,13 +110,10 @@ module Mumbletune
110
110
  message.respond "Now the volume is #{Mumbletune.player.volume?}."
111
111
  end
112
112
 
113
- when /^wisdom$/i
114
- message.respond `fortune`
115
-
116
113
  when /^help$/i
117
114
  rendered = Mustache.render Message.template[:commands]
118
115
  message.respond rendered
119
-
116
+
120
117
  else # Unknown command was given.
121
118
  rendered = Mustache.render Message.template[:commands],
122
119
  :unknown => { :command => message.text }
@@ -5,96 +5,52 @@
5
5
  {{/unknown}}
6
6
 
7
7
  <table>
8
- <thead>
9
- <tr class="header">
10
- <th align="left">
11
- Command
12
- </th>
13
- <th align="left">
14
- Action
15
- </th>
16
- </tr>
17
- </thead>
18
- <tbody>
19
- <tr class="odd">
20
- <td align="left">
21
- play &lt;track&gt;
22
- </td>
23
- <td align="left">
24
- Queue this song.
25
- </td>
26
- </tr>
27
- <tr class="even">
28
- <td align="left">
29
- play &lt;artist&gt;
30
- </td>
31
- <td align="left">
32
- Queue 10 tracks by this artist.
33
- </td>
34
- </tr>
35
- <tr class="odd">
36
- <td align="left">
37
- play &lt;album&gt;
38
- </td>
39
- <td align="left">
40
- Queue this entire album.
41
- </td>
42
- </tr>
43
- <tr class="even">
44
- <td align="left">
45
- play &lt;something&gt; now
46
- </td>
47
- <td align="left">
48
- Play this shit right now!
49
- </td>
50
- </tr>
51
- <tr class="odd">
52
- <td align="left">
53
- what
54
- </td>
55
- <td align="left">
56
- Gets what is playing, and what is queued.
57
- </td>
58
- </tr>
59
- <tr class="even">
60
- <td align="left">
61
- next
62
- </td>
63
- <td align="left">
64
- Jump to the next song in the queue.
65
- </td>
66
- </tr>
67
- <tr class="odd">
68
- <td align="left">
69
- clear
70
- </td>
71
- <td align="left">
72
- Clears the current queue.
73
- </td>
74
- </tr>
75
- <tr class="even">
76
- <td align="left">
77
- volume?
78
- </td>
79
- <td align="left">
80
- Get the current volume level.
81
- </td>
82
- </tr>
83
- <tr class="odd">
84
- <td align="left">
85
- volume [0-100]
86
- </td>
87
- <td align="left">
88
- Set the volume.
89
- </td>
90
- </tr>
91
- <tr class="even">
92
- <td align="left">
93
- wisdom
94
- </td>
95
- <td align="left">
96
- Obtain it.
97
- </td>
98
- </tr>
99
- </tbody>
100
- </table>
8
+ <thead>
9
+ <tr class="header">
10
+ <th align="left">Command</th>
11
+ <th align="left">Action</th>
12
+ </tr>
13
+ </thead>
14
+ <tbody>
15
+ <tr class="odd">
16
+ <td align="left">play &lt;track&gt;</td>
17
+ <td align="left">Queue this song.</td>
18
+ </tr>
19
+ <tr class="even">
20
+ <td align="left">play &lt;artist&gt;</td>
21
+ <td align="left">Queue 10 tracks by this artist.</td>
22
+ </tr>
23
+ <tr class="odd">
24
+ <td align="left">play &lt;album&gt;</td>
25
+ <td align="left">Queue this entire album.</td>
26
+ </tr>
27
+ <tr class="even">
28
+ <td align="left">play &lt;something&gt; now</td>
29
+ <td align="left">Play this shit right now!</td>
30
+ </tr>
31
+ <tr class="odd">
32
+ <td align="left">what</td>
33
+ <td align="left">Show what is playing, and what is queued.</td>
34
+ </tr>
35
+ <tr class="even">
36
+ <td align="left">next</td>
37
+ <td align="left">Jump to the next song in the queue.</td>
38
+ </tr>
39
+ <tr class="odd">
40
+ <td align="left">undo</td>
41
+ <td align="left">Undo the last addition to the queue.</td>
42
+ </tr>
43
+ <tr class="even">
44
+ <td align="left">clear</td>
45
+ <td align="left">Clear the queue.</td>
46
+ </tr>
47
+ <tr class="odd">
48
+ <td align="left">volume?</td>
49
+ <td align="left">Get the current volume level.</td>
50
+ </tr>
51
+ <tr class="even">
52
+ <td align="left">volume [0-100]</td>
53
+ <td align="left">Set the volume.</td>
54
+ </tr>
55
+ </tbody>
56
+ </table>
@@ -1,3 +1,3 @@
1
1
  module Mumbletune
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumbletune
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: