tinyirc 0.1.0
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 +7 -0
- data/.gitignore +10 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +44 -0
- data/LICENSE.txt +21 -0
- data/README.md +90 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/exe/tinyirc +24 -0
- data/lib/tinyirc/app.rb +77 -0
- data/lib/tinyirc/bot.rb +363 -0
- data/lib/tinyirc/command.rb +109 -0
- data/lib/tinyirc/event.rb +12 -0
- data/lib/tinyirc/ircsocket.rb +231 -0
- data/lib/tinyirc/perms.rb +45 -0
- data/lib/tinyirc/plugin.rb +95 -0
- data/lib/tinyirc/plugins/admin-utils.rb +501 -0
- data/lib/tinyirc/plugins/cookies.rb +77 -0
- data/lib/tinyirc/plugins/core.rb +429 -0
- data/lib/tinyirc/usercache.rb +24 -0
- data/lib/tinyirc/version.rb +3 -0
- data/lib/tinyirc/views/404.erb +4 -0
- data/lib/tinyirc/views/500.erb +5 -0
- data/lib/tinyirc/views/index.erb +31 -0
- data/lib/tinyirc/views/layout.erb +62 -0
- data/lib/tinyirc/views/plugin.erb +42 -0
- data/lib/tinyirc.rb +26 -0
- data/tinyirc.gemspec +32 -0
- data/tinyirc.sample.yaml +40 -0
- metadata +172 -0
data/tinyirc.sample.yaml
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
plugins:
|
2
|
+
path/to/plugin: # The same path as in the `require` function
|
3
|
+
# This table can be empty if you want to load the plugin without configuring it
|
4
|
+
# Plugins may require some values from this table though
|
5
|
+
foo: bar
|
6
|
+
|
7
|
+
groups:
|
8
|
+
world: # All users belong to this group
|
9
|
+
include: # Includes permissions from listed groups into the current one
|
10
|
+
- plugin/world
|
11
|
+
perms:
|
12
|
+
- core/flushq
|
13
|
+
admin: # Admins have this group
|
14
|
+
include:
|
15
|
+
- world
|
16
|
+
- plugin/admin
|
17
|
+
owner: # Owners have this group
|
18
|
+
include:
|
19
|
+
- admin
|
20
|
+
- plugin/owner
|
21
|
+
|
22
|
+
cooldowns:
|
23
|
+
plugin: 30 # Sets cooldown for plugin/*/* commands to 30 seconds
|
24
|
+
plugin/command: 20 # Sets cooldown for plugin/command/* commands to 20 seconds
|
25
|
+
plugin/command/branch: 10 # Sets cooldown for plugin/command/branch command to 10 seconds
|
26
|
+
|
27
|
+
servers:
|
28
|
+
freenode:
|
29
|
+
host: irc.freenode.net
|
30
|
+
port: 6667
|
31
|
+
|
32
|
+
nick: YourNicknameHere
|
33
|
+
user: YourUsernameHere
|
34
|
+
pass: YourPasswordHere
|
35
|
+
rnam: YourRealnameHere
|
36
|
+
|
37
|
+
prefix: '@'
|
38
|
+
|
39
|
+
autojoin:
|
40
|
+
- '#botters-test'
|
metadata
ADDED
@@ -0,0 +1,172 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tinyirc
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nickolay Ilyushin
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-04-03 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: particlecmd
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0.1'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0.1'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: particlelog
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.1'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.1'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sinatra
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2.0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: thin
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.2'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.2'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: sqlite3
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '1.3'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '1.3'
|
111
|
+
description: A modular IRC bot framework
|
112
|
+
email:
|
113
|
+
- nickolay02@inbox.ru
|
114
|
+
executables:
|
115
|
+
- tinyirc
|
116
|
+
extensions: []
|
117
|
+
extra_rdoc_files: []
|
118
|
+
files:
|
119
|
+
- ".gitignore"
|
120
|
+
- Gemfile
|
121
|
+
- Gemfile.lock
|
122
|
+
- LICENSE.txt
|
123
|
+
- README.md
|
124
|
+
- Rakefile
|
125
|
+
- bin/console
|
126
|
+
- bin/setup
|
127
|
+
- exe/tinyirc
|
128
|
+
- lib/tinyirc.rb
|
129
|
+
- lib/tinyirc/app.rb
|
130
|
+
- lib/tinyirc/bot.rb
|
131
|
+
- lib/tinyirc/command.rb
|
132
|
+
- lib/tinyirc/event.rb
|
133
|
+
- lib/tinyirc/ircsocket.rb
|
134
|
+
- lib/tinyirc/perms.rb
|
135
|
+
- lib/tinyirc/plugin.rb
|
136
|
+
- lib/tinyirc/plugins/admin-utils.rb
|
137
|
+
- lib/tinyirc/plugins/cookies.rb
|
138
|
+
- lib/tinyirc/plugins/core.rb
|
139
|
+
- lib/tinyirc/usercache.rb
|
140
|
+
- lib/tinyirc/version.rb
|
141
|
+
- lib/tinyirc/views/404.erb
|
142
|
+
- lib/tinyirc/views/500.erb
|
143
|
+
- lib/tinyirc/views/index.erb
|
144
|
+
- lib/tinyirc/views/layout.erb
|
145
|
+
- lib/tinyirc/views/plugin.erb
|
146
|
+
- tinyirc.gemspec
|
147
|
+
- tinyirc.sample.yaml
|
148
|
+
homepage: https://github.com/handicraftsman/tinyirc
|
149
|
+
licenses:
|
150
|
+
- MIT
|
151
|
+
metadata: {}
|
152
|
+
post_install_message:
|
153
|
+
rdoc_options: []
|
154
|
+
require_paths:
|
155
|
+
- lib
|
156
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
158
|
+
- - ">="
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
161
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - ">="
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
requirements: []
|
167
|
+
rubyforge_project:
|
168
|
+
rubygems_version: 2.7.3
|
169
|
+
signing_key:
|
170
|
+
specification_version: 4
|
171
|
+
summary: A modular IRC bot framework
|
172
|
+
test_files: []
|