From b38a954604b0f14ef9a437e8f1f689e0875eacb9 Mon Sep 17 00:00:00 2001 From: Henesy Date: Sun, 15 Nov 2020 00:44:39 +0000 Subject: [PATCH] s/bitbucket.org/github.com/ --- .hgignore => .gitignore | 2 +- README.md | 2 +- devbuild | 5 +++++ main.go | 2 +- misc.go | 1 - mux.go | 4 +++- x/mux/about.go | 2 +- 7 files changed, 12 insertions(+), 6 deletions(-) rename .hgignore => .gitignore (57%) create mode 100755 devbuild diff --git a/.hgignore b/.gitignore similarity index 57% rename from .hgignore rename to .gitignore index a4df18f1442a900fc70c69a7de8f27d2246cb146..99d876a119f81d0f2e047f67625154fed0954e8f 100644 --- a/.hgignore +++ b/.gitignore @@ -1,3 +1,3 @@ glenda -^cfg/ +cfg/ diff --git a/README.md b/README.md index efcdb38525a20632b882333d9fcd70f95637a464..b7c7fb347ab9976b781b3344bbefce4113f8e57b 100644 --- a/README.md +++ b/README.md @@ -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' ``` diff --git a/devbuild b/devbuild new file mode 100755 index 0000000000000000000000000000000000000000..f033f2b36b4a3c39c26c97bdf99b6ac6593b9f46 --- /dev/null +++ b/devbuild @@ -0,0 +1,5 @@ +#!/bin/bash +# Rebuild script for hosting server +export DG_TOKEN=$HB_TOKEN +go build; ./glenda > ./glenda.log + diff --git a/main.go b/main.go index 4ee68fa9addc299c91c66ca33e38c2c8572c60c2..72e090589c49bd9f972031f64a8b6ab6cdb9e787 100644 --- a/main.go +++ b/main.go @@ -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" ) diff --git a/misc.go b/misc.go index c2ee41784d1245098ba703a6f338eace965aa8a1..68b99b37d887e34a43ee8a4c9c1c8276e6fd4923 100644 --- a/misc.go +++ b/misc.go @@ -3,7 +3,6 @@ package main // Miscellaneous utilities for communicating with Mux import ( -// "bitbucket.org/henesy/glenda/x/mux" "time" ) diff --git a/mux.go b/mux.go index 12e148fb474d24c1b40fece5b946002e29610fda..d6b5edc13e78d6b7644e3b2ee97c208203c433f9 100644 --- a/mux.go +++ b/mux.go @@ -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. diff --git a/x/mux/about.go b/x/mux/about.go index 24304412504d4144c9e41bb8eec8b20733a89af2..4a0f2aaa1f5a208044828580f4811d02e1210ed1 100644 --- a/x/mux/about.go +++ b/x/mux/about.go @@ -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"