discord

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

* Copyright 2021 M1K * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

* Copyright 2022 M1K * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlertCrypto

func AlertCrypto(sess *discordgo.Session, guildID, author, ticker string, diff, value float32, channelType int, ref *discordgo.MessageReference)

func AlertCryptoPT

func AlertCryptoPT(sess *discordgo.Session, guildID, author, ticker string, pt float32, channelType int)

func AlertCryptoPTExit

func AlertCryptoPTExit(sess *discordgo.Session, guildID, author, ticker string, pt float32, channelType int)

func AlertExpired

func AlertExpired(sess *discordgo.Session, guildID, author, prettyStr string, channelType int)

func AlertOption

func AlertOption(sess *discordgo.Session, guildID, author, prettyStr string, diff, value float32, channelType int, ref *discordgo.MessageReference)

func AlertOptionPT

func AlertOptionPT(sess *discordgo.Session, guildID, author, ticker string, pt float32, channelType int)

func AlertShort

func AlertShort(sess *discordgo.Session, guildID, author, ticker string, diff, value float32, channelType int, ref *discordgo.MessageReference)

func AlertShortPT

func AlertShortPT(sess *discordgo.Session, guildID, author, ticker string, pt float32, channelType int)

func AlertShortPTExit

func AlertShortPTExit(sess *discordgo.Session, guildID, author, ticker string, pt float32, channelType int)

func AlertStock

func AlertStock(sess *discordgo.Session, guildID, author, ticker string, diff, value float32, channelType int, ref *discordgo.MessageReference)

func AlertStockPT

func AlertStockPT(sess *discordgo.Session, guildID, author, ticker string, pt float32, channelType int)

func AlertStockPTExit

func AlertStockPTExit(sess *discordgo.Session, guildID, author, ticker string, pt float32, channelType int)

func EOD

func EOD(s *discordgo.Session, guildID string)

func EODEmbed

func EODEmbed(s *discordgo.Session, gid string) *discordgo.MessageEmbed

func GetCryptoEmbed

func GetCryptoEmbed(colour int, alerter, ticker, expiry string, cost, stop, poi, spt, ept float32) *discordgo.MessageEmbed

func GetMessageEmbed

func GetMessageEmbed(colour int, alerter string, msg ...string) *discordgo.MessageEmbed

func GetOptionsEmbed

func GetOptionsEmbed(colour int, alerter, prettyStr, cType, ticker, strike, expiry string, cost, stop, poi, pt float32, under float64) *discordgo.MessageEmbed

func GetShortEmbed

func GetShortEmbed(colour int, alerter, ticker, expiry string, cost, stop, poi, spt, ept float32) *discordgo.MessageEmbed

func GetStockEmbed

func GetStockEmbed(colour int, alerter, ticker, expiry string, cost, stop, poi, spt, ept float32) *discordgo.MessageEmbed

func GuildCreate

func GuildCreate(s *discordgo.Session, event *discordgo.GuildCreate)

func MessageCreate

func MessageCreate(s *discordgo.Session, m *discordgo.MessageCreate)

func POI

func POI(sess *discordgo.Session, guildID, ticker, author string, poi float32, channelType int, ref *discordgo.MessageReference)

func Ready

func Ready(s *discordgo.Session, event *discordgo.Ready)

func SendAlertWithEmbed

func SendAlertWithEmbed(sess *discordgo.Session, guildID string, msg *discordgo.MessageEmbed, channelType int) error

func SendError

func SendError(s *discordgo.Session, channelID string, err error)

func SendReplyWithEmbed

func SendReplyWithEmbed(sess *discordgo.Session, guildID string, msg *discordgo.MessageEmbed, channelType int, ref *discordgo.MessageReference) error

func StopLoss

func StopLoss(sess *discordgo.Session, guildID, ticker, author string, stop float32, channelType int, ref *discordgo.MessageReference)

Types

This section is empty.

Directories

Path Synopsis
* Copyright 2021 M1K * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
* Copyright 2021 M1K * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
* Copyright 2021 M1K * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
* Copyright 2021 M1K * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
* Copyright 2021 M1K * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.
* Copyright 2021 M1K * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL