Fixed Drone pipeline and removed ads from footer. No one loves ads.
This commit is contained in:
parent
db34a064f5
commit
4012b5da02
@ -23,7 +23,6 @@ steps:
|
|||||||
- name: test
|
- name: test
|
||||||
image: golang:1.13.1-alpine
|
image: golang:1.13.1-alpine
|
||||||
environment:
|
environment:
|
||||||
GOFLAGS: -mod=vendor
|
|
||||||
CGO_ENABLED: 0
|
CGO_ENABLED: 0
|
||||||
commands:
|
commands:
|
||||||
- go test ./...
|
- go test ./...
|
||||||
|
@ -9,13 +9,6 @@ import (
|
|||||||
"go.dev.pztrn.name/discordrone/env"
|
"go.dev.pztrn.name/discordrone/env"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
// DroneIconURL default drone logo url
|
|
||||||
droneIconURL = "https://c1.staticflickr.com/5/4236/34957940160_435d83114f_z.jpg"
|
|
||||||
// DroneDesc default drone description
|
|
||||||
droneDesc = "Powered by DiscorDrone Plugin"
|
|
||||||
)
|
|
||||||
|
|
||||||
func createEmbed() EmbedObject {
|
func createEmbed() EmbedObject {
|
||||||
// Create initial payload object.
|
// Create initial payload object.
|
||||||
// Description.
|
// Description.
|
||||||
@ -27,10 +20,6 @@ func createEmbed() EmbedObject {
|
|||||||
Name: env.Data.Drone.Commit.Author.Name,
|
Name: env.Data.Drone.Commit.Author.Name,
|
||||||
IconURL: env.Data.Drone.Commit.Author.Avatar,
|
IconURL: env.Data.Drone.Commit.Author.Avatar,
|
||||||
},
|
},
|
||||||
Footer: EmbedFooterObject{
|
|
||||||
Text: droneDesc,
|
|
||||||
IconURL: droneIconURL,
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Compose description.
|
// Compose description.
|
||||||
|
Reference in New Issue
Block a user