-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy patheveService.rb
136 lines (111 loc) · 6.23 KB
/
eveService.rb
1
2
3
4
5
6
7
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# frozen_string_literal: true
require 'cinch'
## The file referenced below should be gone over to make sure that you
## want to load the plugins listed.
require_relative '../../bin/plugins'
=begin
You should have something in the block below as it will have Eve report
invalid or unauthorized use of her commands to the nicks you place in it
Note: Please keep in mind that this doesn't check if the dispatch nick
is authed so if for some reason it is imperative that no one but the bot
masters see output maybe it is wise to only put your nick in here and
make sure no one steals it!
=end
VERSION = File.expand_path('../../VERSION', __FILE__)
Config = OpenStruct.new
Config.dispatch = %w[foo bar you]
Config.owner = ['Namaste']
# In the block below make sure to enter your server information as well as
# the channels that you want it to join. Don't be lazy!
bot = Cinch::Bot.new do
configure do |c|
c.server = 'irc.sinsira.net'
c.channels = ['#Eve']
c.nick = 'Eve'
c.user = 'Eve'
c.realname = "Eve #{VERSION}"
c.verbose
## Below is the plugin block for Eve-Bot. Please be sure that all the plugins
## that you want the bot to use are included in this block. If you want to
## remove a plugin from Eve-Bot simply remove it's entry from this block
## (including the trailing colon), and take note of it's format! If you've
## removed a plugin and the bot won't start it's probably because you removed,
## added, or transposed a colon or semicolon, or you didn't delete the options
## for the plugin, located below in the options block.
c.plugins.plugins = [Cinch::Plugins::BotInfo,
Cinch::Plugins::PluginManagement,
Cinch::Plugins::Urban,
Cinch::Plugins::Help,
Cinch::Plugins::Seen,
Cinch::Plugins::Greeting,
Cinch::Plugins::Eightball,
Cinch::Plugins::Decide,
Cinch::Plugins::Memo,
Cinch::Plugins::Ai,
Cinch::Plugins::ControlPanel,
Cinch::Plugins::ChanopCP,
Cinch::Plugins::PrivateCP,
Cinch::Plugins::PrivChanCP,
Cinch::Plugins::FactCore,
Cinch::Plugins::Fun,
Cinch::Plugins::ActAI,
Cinch::Plugins::UrlScraper,
# Cinch::Plugins::Twitter,
# Cinch::Plugins::TwitterStatus,
Cinch::Plugins::Wikipedia,
Cinch::Plugins::Weather,
# Cinch::Plugins::Google,
Cinch::Plugins::YouTube,
Cinch::Plugins::Math,
Cinch::Plugins::UserInfo,
Cinch::Plugins::Isitup,
Cinch::Plugins::RelationshipHandler,
Cinch::Plugins::IgnoreHandler,
Cinch::Plugins::AdminHandler,
Cinch::Plugins::FourChan,
Cinch::Plugins::Dictionary,
Cinch::Plugins::News,
Cinch::Plugins::Wolfram,
Cinch::Plugins::CoinQuery,
# Cinch::Plugins::WordGame,
Cinch::Plugins::Reddit,
# Cinch::Plugins::Tag,
Cinch::Plugins::LastFm,
Cinch::Plugins::NameGenerator,
Cinch::Plugins::Utilities,
Cinch::Plugins::Yourls]
## Below this line MUST be configured for the bot to work. That means DO NOT
## skip over these options or the bot WILL NOT WORK. If you do not want the
## plugins to work for whatever reason then do not igore these plugin options,
## instead, delete them from this file, and the above plugin block.
c.plugins.options[Cinch::Plugins::UrlScraper] = { enabled_channels: ['#foo', '#bar' '#channel'] }
c.plugins.options[Cinch::Plugins::Greeting] = { enabled_channels: ['#foo', '#bar' '#channel'] }
# c.plugins.options[Cinch::Plugins::TwitterStatus] = { consumer_key: 'foo',
# consumer_secret: 'foo',
# access_token: 'foo',
# access_token_secret: 'foo',
# watchers: { '#foo' => ['bar'] }
# }
# c.plugins.options[Cinch::Plugins::Twitter] = { access_keys: {
# consumer_key: "foo",
# consumer_secret: "foo",
# access_token: "foo",
# access_token_secret: "foo"
# }
# }
c.plugins.options[Cinch::Plugins::Wolfram] = { key: 'foo' }
c.plugins.options[Cinch::Plugins::Weather] = { key: 'foo' }
c.plugins.options[Cinch::Plugins::LastFm] = { key: 'foo' }
# c.plugins.options[Cinch::Plugins::Google] = { key: 'foo',
# engineid: 'bar'
# }
c.plugins.options[Cinch::Plugins::Yourls] = { yourls_server: 'https://example.net/yourls/yourls-api.php?signature=',
secret_id: 'foo',
disabled_channels: %w(#foo #bar),
scrape_title: 'never',
collection_channel: '#foo'
}
c.password = 'nspass'
end
end
bot.start