mirror of https://github.com/velour/catbase.git
Renaming project to reflect bot's actual name.
This commit is contained in:
parent
ea60a899c7
commit
d87f7779ab
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
AlePale is a bot that trolls our little corner of the IRC world and keeps our friends laughing from time to time. Sometimes he makes us angry too. He is crafted as a clone of XKCD's Bucket bot, which learns from things he's told and regurgitates his knowledge to the various channels that he lives in. I've found in many such projects that randomness can often make bots feel much more alive than they are, so AlePale is a big experiment in how great randomness is.
|
AlePale is a bot that trolls our little corner of the IRC world and keeps our friends laughing from time to time. Sometimes he makes us angry too. He is crafted as a clone of XKCD's Bucket bot, which learns from things he's told and regurgitates his knowledge to the various channels that he lives in. I've found in many such projects that randomness can often make bots feel much more alive than they are, so AlePale is a big experiment in how great randomness is.
|
||||||
|
|
||||||
- [Project Page](https://bitbucket.org/phlyingpenguin/godeepintir/overview)
|
- [Project Page](http://chrissexton.org/projects/alepale)
|
||||||
|
|
||||||
## Getting Help
|
## Getting Help
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package bot
|
package bot
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/phlyingpenguin/godeepintir/config"
|
"github.com/chrissexton/alepale/config"
|
||||||
irc "github.com/fluffle/goirc/client"
|
irc "github.com/fluffle/goirc/client"
|
||||||
"labix.org/v2/mgo"
|
"labix.org/v2/mgo"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
|
@ -242,7 +242,7 @@ func (b *Bot) listVars(channel string, parts []string) {
|
||||||
func (b *Bot) Help(channel string, parts []string) {
|
func (b *Bot) Help(channel string, parts []string) {
|
||||||
msg := fmt.Sprintf("Hi, I'm based on godeepintir version %s. I'm written in Go, and you "+
|
msg := fmt.Sprintf("Hi, I'm based on godeepintir version %s. I'm written in Go, and you "+
|
||||||
"can find my source code on the internet here: "+
|
"can find my source code on the internet here: "+
|
||||||
"http://github.com/phlyingpenguin/godeepintir", b.Version)
|
"http://github.com/chrissexton/alepale", b.Version)
|
||||||
b.SendMessage(channel, msg)
|
b.SendMessage(channel, msg)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
6
main.go
6
main.go
|
@ -1,9 +1,9 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/phlyingpenguin/godeepintir/bot"
|
"github.com/chrissexton/alepale/bot"
|
||||||
"github.com/phlyingpenguin/godeepintir/config"
|
"github.com/chrissexton/alepale/config"
|
||||||
"github.com/phlyingpenguin/godeepintir/plugins"
|
"github.com/chrissexton/alepale/plugins"
|
||||||
"flag"
|
"flag"
|
||||||
"fmt"
|
"fmt"
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package plugins
|
package plugins
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/phlyingpenguin/godeepintir/bot"
|
"github.com/chrissexton/alepale/bot"
|
||||||
"fmt"
|
"fmt"
|
||||||
"labix.org/v2/mgo"
|
"labix.org/v2/mgo"
|
||||||
"labix.org/v2/mgo/bson"
|
"labix.org/v2/mgo/bson"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package plugins
|
package plugins
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/phlyingpenguin/godeepintir/bot"
|
"github.com/chrissexton/alepale/bot"
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"errors"
|
"errors"
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
import "github.com/phlyingpenguin/godeepintir/bot"
|
import "github.com/chrissexton/alepale/bot"
|
||||||
|
|
||||||
// This is a counter plugin to count arbitrary things.
|
// This is a counter plugin to count arbitrary things.
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package plugins
|
package plugins
|
||||||
|
|
||||||
import "github.com/phlyingpenguin/godeepintir/bot"
|
import "github.com/chrissexton/alepale/bot"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package plugins
|
package plugins
|
||||||
|
|
||||||
import "github.com/phlyingpenguin/godeepintir/bot"
|
import "github.com/chrissexton/alepale/bot"
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package plugins
|
package plugins
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/phlyingpenguin/godeepintir/bot"
|
"github.com/chrissexton/alepale/bot"
|
||||||
"fmt"
|
"fmt"
|
||||||
"labix.org/v2/mgo"
|
"labix.org/v2/mgo"
|
||||||
"labix.org/v2/mgo/bson"
|
"labix.org/v2/mgo/bson"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package plugins
|
package plugins
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/phlyingpenguin/godeepintir/bot"
|
"github.com/chrissexton/alepale/bot"
|
||||||
"fmt"
|
"fmt"
|
||||||
"labix.org/v2/mgo"
|
"labix.org/v2/mgo"
|
||||||
"labix.org/v2/mgo/bson"
|
"labix.org/v2/mgo/bson"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package plugins
|
package plugins
|
||||||
|
|
||||||
import "fmt"
|
import "fmt"
|
||||||
import "github.com/phlyingpenguin/godeepintir/bot"
|
import "github.com/chrissexton/alepale/bot"
|
||||||
|
|
||||||
// Plugin interface defines the methods needed to accept a plugin
|
// Plugin interface defines the methods needed to accept a plugin
|
||||||
type Plugin interface {
|
type Plugin interface {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package plugins
|
package plugins
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/phlyingpenguin/godeepintir/bot"
|
"github.com/chrissexton/alepale/bot"
|
||||||
"fmt"
|
"fmt"
|
||||||
"labix.org/v2/mgo"
|
"labix.org/v2/mgo"
|
||||||
"labix.org/v2/mgo/bson"
|
"labix.org/v2/mgo/bson"
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package plugins
|
package plugins
|
||||||
|
|
||||||
import "github.com/phlyingpenguin/godeepintir/bot"
|
import "github.com/chrissexton/alepale/bot"
|
||||||
|
|
||||||
// This is a skeleton plugin to serve as an example and quick copy/paste for new plugins.
|
// This is a skeleton plugin to serve as an example and quick copy/paste for new plugins.
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
package plugins
|
package plugins
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/phlyingpenguin/godeepintir/bot"
|
"github.com/chrissexton/alepale/bot"
|
||||||
"fmt"
|
"fmt"
|
||||||
"math/rand"
|
"math/rand"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package plugins
|
package plugins
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/phlyingpenguin/godeepintir/bot"
|
"github.com/chrissexton/alepale/bot"
|
||||||
"github.com/phlyingpenguin/twitter"
|
"github.com/chrissexton/twitter"
|
||||||
"github.com/garyburd/go-oauth/oauth"
|
"github.com/garyburd/go-oauth/oauth"
|
||||||
"labix.org/v2/mgo"
|
"labix.org/v2/mgo"
|
||||||
"labix.org/v2/mgo/bson"
|
"labix.org/v2/mgo/bson"
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/phlyingpenguin/godeepintir/bot"
|
"github.com/chrissexton/alepale/bot"
|
||||||
)
|
)
|
||||||
|
|
||||||
type YourPlugin struct {
|
type YourPlugin struct {
|
||||||
|
|
Loading…
Reference in New Issue