aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornytpu <alex@nytpu.com>2021-03-09 07:04:53 -0700
committernytpu <alex@nytpu.com>2021-03-09 07:04:53 -0700
commit25fd459268c2084e5101d610c83f93e8af9e6f63 (patch)
tree53394311976c70e7e8a8c94e393b6fdc9a52d4f3
parentupdate header on page (diff)
downloadcheetah-bot-25fd459268c2084e5101d610c83f93e8af9e6f63.tar.bz2
cheetah-bot-25fd459268c2084e5101d610c83f93e8af9e6f63.zip
remove imgur stuff
-rw-r--r--cheetah-bot.go24
1 files changed, 0 insertions, 24 deletions
diff --git a/cheetah-bot.go b/cheetah-bot.go
index 03f1914..88304de 100644
--- a/cheetah-bot.go
+++ b/cheetah-bot.go
@@ -10,15 +10,6 @@ import (
"os"
"time"
- /*
- // imgur stuff
- "github.com/koffeinsource/go-imgur"
- "github.com/koffeinsource/go-klogger"
- "io/ioutil"
- "log"
- "net/http"
- */
-
"github.com/turnage/graw/reddit"
"github.com/McKael/madon"
@@ -78,21 +69,6 @@ func main() {
masto, err := madon.RestoreApp("cheetah-bot", "botsin.space", mastoId, mastoSecret, mastoToken)
- /*
- // create imgur client and upload to imgur
- imgur := new(imgur.Client)
- imgur.HTTPClient = new(http.Client)
- imgur.Log = new(klogger.CLILogger)
- log.SetOutput(ioutil.Discard)
- imgur.ImgurClientID = "9657b96ca0b7f38" // definitely not a random client id pulled off of github
- imgurStruct, st, err := imgur.UploadImageFromFile(filename, "", "", "")
- if st != 200 || err != nil {
- fmt.Printf("Failed to upload to imgur: %v (status %v)\n", err, st)
- os.Exit(1)
- }
- imgurImage := imgurStruct.Link
- */
-
mastoImage, err := masto.UploadMedia(filename, "", "")
if err != nil {
fmt.Println("Failed to upload image to mastodon: ", err)