Skip to content
This repository was archived by the owner on Sep 3, 2022. It is now read-only.

Commit 92b976f

Browse files
committed
Quick push to sync changes
1 parent 55bc13d commit 92b976f

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

msgImageRecall.go

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,28 +29,21 @@ func msgImageRecall(s *discordgo.Session, m *discordgo.MessageCreate, msglist []
2929
}
3030

3131
func fimageRecall(s *discordgo.Session, m *discordgo.MessageCreate, msglist []string) {
32-
resp, err := http.Get("http://strum355.netsoc.co/inServer?id="+m.Author.ID)
33-
if err != nil {
34-
errorLog.Println(err)
35-
return
36-
}
37-
defer resp.Body.Close()
32+
}
3833

39-
bytes, err := ioutil.ReadAll(resp.Body)
34+
func fimageSave(s *discordgo.Session, m *discordgo.MessageCreate, msglist []string) {
35+
resp, err := http.Get("http://strum355.netsoc.co:8042/inServer?id="+m.Author.ID)
4036
if err != nil {
4137
errorLog.Println(err)
4238
return
4339
}
40+
defer resp.Body.Close()
4441

45-
if string(bytes) == "1" {
46-
fmt.Println("in server")
42+
exists := resp.Header.Get("exists")
43+
if exists == "false" {
44+
errorLog.Println("Gotta be in the 2Bot server for this command")
4745
return
4846
}
49-
fmt.Println("not in server")
50-
}
51-
52-
func fimageSave(s *discordgo.Session, m *discordgo.MessageCreate, msglist []string) {
53-
5447
}
5548

5649
func fimageList(s *discordgo.Session, m *discordgo.MessageCreate, msglist []string) {

0 commit comments

Comments
 (0)