mumbletune 0.1.1 → 0.1.2
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.
- data/docs/commands.md +6 -4
- data/lib/mumbletune/messages.rb +1 -4
- data/lib/mumbletune/templates/commands.mustache +49 -93
- data/lib/mumbletune/version.rb +1 -1
- metadata +1 -1
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
|
7
|
+
what Show what is playing, and what is queued.
|
8
8
|
next Jump to the next song in the queue.
|
9
|
-
|
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
|
-
|
13
|
-
|
13
|
+
------ ------
|
14
|
+
|
15
|
+
<!-- Generate HTML with: $ pandoc -f markdown -->
|
data/lib/mumbletune/messages.rb
CHANGED
@@ -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
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
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 <track></td>
|
17
|
+
<td align="left">Queue this song.</td>
|
18
|
+
</tr>
|
19
|
+
<tr class="even">
|
20
|
+
<td align="left">play <artist></td>
|
21
|
+
<td align="left">Queue 10 tracks by this artist.</td>
|
22
|
+
</tr>
|
23
|
+
<tr class="odd">
|
24
|
+
<td align="left">play <album></td>
|
25
|
+
<td align="left">Queue this entire album.</td>
|
26
|
+
</tr>
|
27
|
+
<tr class="even">
|
28
|
+
<td align="left">play <something> 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>
|
data/lib/mumbletune/version.rb
CHANGED