Reverted Tell and Twitter initializations to the init stage.
This commit is contained in:
parent
625ef1368c
commit
250c52b7d5
1 changed files with 4 additions and 2 deletions
|
@ -136,13 +136,13 @@ class Mobibot(nickname: String, channel: String, logsDirPath: String, p: Propert
|
||||||
private val pinboard: PinboardPoster = PinboardPoster()
|
private val pinboard: PinboardPoster = PinboardPoster()
|
||||||
|
|
||||||
/** Tell command. */
|
/** Tell command. */
|
||||||
val tell: Tell = Tell(this)
|
val tell: Tell
|
||||||
|
|
||||||
/** Today's date. */
|
/** Today's date. */
|
||||||
val today = today()
|
val today = today()
|
||||||
|
|
||||||
/** Twitter module. */
|
/** Twitter module. */
|
||||||
val twitter: Twitter = Twitter(this)
|
val twitter: Twitter
|
||||||
|
|
||||||
/** The backlogs URL. */
|
/** The backlogs URL. */
|
||||||
val backlogsUrl: String
|
val backlogsUrl: String
|
||||||
|
@ -730,6 +730,7 @@ class Mobibot(nickname: String, channel: String, logsDirPath: String, p: Propert
|
||||||
addons.add(Versions(this), p)
|
addons.add(Versions(this), p)
|
||||||
|
|
||||||
// Tell command
|
// Tell command
|
||||||
|
tell = Tell(this)
|
||||||
addons.add(tell, p)
|
addons.add(tell, p)
|
||||||
|
|
||||||
// Load the links commands
|
// Load the links commands
|
||||||
|
@ -754,6 +755,7 @@ class Mobibot(nickname: String, channel: String, logsDirPath: String, p: Propert
|
||||||
addons.add(WorldTime(this), p)
|
addons.add(WorldTime(this), p)
|
||||||
|
|
||||||
// Twitter module
|
// Twitter module
|
||||||
|
twitter = Twitter(this)
|
||||||
addons.add(twitter, p)
|
addons.add(twitter, p)
|
||||||
|
|
||||||
// Sort the addons
|
// Sort the addons
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue