~kris/9p

glenda

b38a954604b0f14ef9a437e8f1f689e0875eacb9 — Henesy 5 years ago 83c7f34
s/bitbucket.org/github.com/
7 files changed, 12 insertions(+), 6 deletions(-)

R .hgignore => .gitignore
M README.md
A devbuild
M main.go
M misc.go
M mux.go
M x/mux/about.go
R .hgignore => .gitignore +1 -1
@@ 1,3 1,3 @@
glenda
^cfg/
cfg/


M README.md => README.md +1 -1
@@ 19,7 19,7 @@ go get github.com/SlyMarbo/rss

### Usage
```
cd $GOPATH/src/bitbucket.org/henesy/glenda
cd $GOPATH/src/github.com/henesy/glenda
go build
./glenda -t 'Bot BOT_AUTH_TOKEN'
```

A devbuild => devbuild +5 -0
@@ 0,0 1,5 @@
#!/bin/bash
# Rebuild script for hosting server
export DG_TOKEN=$HB_TOKEN
go build; ./glenda > ./glenda.log


M main.go => main.go +1 -1
@@ 9,7 9,7 @@ import (
	"syscall"
	"time"
	"github.com/bwmarrin/discordgo"
	"bitbucket.org/henesy/glenda/x/mux"
	"github.com/henesy/glenda/x/mux"
sc	"strconv"
)


M misc.go => misc.go +0 -1
@@ 3,7 3,6 @@ package main
// Miscellaneous utilities for communicating with Mux

import (
//	"bitbucket.org/henesy/glenda/x/mux"
	"time"
)


M mux.go => mux.go +3 -1
@@ 4,7 4,9 @@ package main
// to the Disgord bot. This is an optional addition however it is included
// by default to demonstrate how to extend the Disgord bot.

import "bitbucket.org/henesy/glenda/x/mux"
import (
	"github.com/henesy/glenda/x/mux"
)

// Router is registered as a global variable to allow easy access to the
// multiplexer throughout the bot.

M x/mux/about.go => x/mux/about.go +1 -1
@@ 11,7 11,7 @@ func (m *Mux) About(ds *discordgo.Session, dm *discordgo.Message, ctx *Context) 
	resp += `Hi!
My name is Glenda, my namesake is Glenda the Plan 9 mascot! (http://glenda.cat-v.org)
	
My source code is located at https://bitbucket.org/henesy/glenda. I am written in Go (https://tour.golang.org).
My source code is located at https://github.com/henesy/glenda. I am written in Go (https://tour.golang.org).
	`

	resp += "\n"