Skip to content

Commit

Permalink
Updated for Forge 2.0.0.Alpha10
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Aug 12, 2013
1 parent 6412667 commit 7dc842f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ To install it, be sure to install in your local maven repository and then run

Or if you have the Eclipse plugin installed in your repository, use the following coordinates after installing in your local maven repository:

GroupId: org.jboss.forge
GroupId: org.jboss.forge.addon
ArtifactId: ircbot
Version: LATEST
9 changes: 5 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>org.jboss.forge</groupId>
<groupId>org.jboss.forge.addon</groupId>
<artifactId>ircbot</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>IRC Addon </name>
Expand All @@ -12,9 +12,10 @@
<version>1.5.0</version>
</dependency>
<dependency>
<groupId>org.jboss.forge</groupId>
<artifactId>forge-addon-container-api</artifactId>
<version>2.0.0.Alpha2</version>
<groupId>org.jboss.forge.furnace.container</groupId>
<artifactId>cdi</artifactId>
<version>2.0.0.Alpha10</version>
<classifier>forge-addon</classifier>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/org/jboss/forge/irc/IRCBotAddon.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import javax.enterprise.event.Observes;
import javax.inject.Inject;

import org.jboss.forge.container.event.PostStartup;
import org.jboss.forge.furnace.event.PostStartup;

/**
* This class listens for events in the forge container and connects in the forge channel using the forgebot nick
Expand All @@ -25,8 +25,9 @@ public class IRCBotAddon

public void startup(@Observes PostStartup startup) throws Exception
{
// bot.setVerbose(true);
bot.connect("irc.freenode.net");
bot.changeNick("forgebot");
bot.changeNick("furnacebot");
bot.joinChannel("#forge");
}
}

0 comments on commit 7dc842f

Please sign in to comment.