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 ¶
- func AlertCrypto(sess *discordgo.Session, guildID, author, ticker string, diff, value float32, ...)
- func AlertCryptoPT(sess *discordgo.Session, guildID, author, ticker string, pt float32, ...)
- func AlertCryptoPTExit(sess *discordgo.Session, guildID, author, ticker string, pt float32, ...)
- func AlertExpired(sess *discordgo.Session, guildID, author, prettyStr string, channelType int)
- func AlertOption(sess *discordgo.Session, guildID, author, prettyStr string, ...)
- func AlertOptionPT(sess *discordgo.Session, guildID, author, ticker string, pt float32, ...)
- func AlertShort(sess *discordgo.Session, guildID, author, ticker string, diff, value float32, ...)
- func AlertShortPT(sess *discordgo.Session, guildID, author, ticker string, pt float32, ...)
- func AlertShortPTExit(sess *discordgo.Session, guildID, author, ticker string, pt float32, ...)
- func AlertStock(sess *discordgo.Session, guildID, author, ticker string, diff, value float32, ...)
- func AlertStockPT(sess *discordgo.Session, guildID, author, ticker string, pt float32, ...)
- func AlertStockPTExit(sess *discordgo.Session, guildID, author, ticker string, pt float32, ...)
- func EOD(s *discordgo.Session, guildID string)
- func EODEmbed(s *discordgo.Session, gid string) *discordgo.MessageEmbed
- func GetCryptoEmbed(colour int, alerter, ticker, expiry string, cost, stop, poi, spt, ept float32) *discordgo.MessageEmbed
- func GetMessageEmbed(colour int, alerter string, msg ...string) *discordgo.MessageEmbed
- func GetOptionsEmbed(colour int, alerter, prettyStr, cType, ticker, strike, expiry string, ...) *discordgo.MessageEmbed
- func GetShortEmbed(colour int, alerter, ticker, expiry string, cost, stop, poi, spt, ept float32) *discordgo.MessageEmbed
- func GetStockEmbed(colour int, alerter, ticker, expiry string, cost, stop, poi, spt, ept float32) *discordgo.MessageEmbed
- func GuildCreate(s *discordgo.Session, event *discordgo.GuildCreate)
- func MessageCreate(s *discordgo.Session, m *discordgo.MessageCreate)
- func POI(sess *discordgo.Session, guildID, ticker, author string, poi float32, ...)
- func Ready(s *discordgo.Session, event *discordgo.Ready)
- func SendAlertWithEmbed(sess *discordgo.Session, guildID string, msg *discordgo.MessageEmbed, ...) error
- func SendError(s *discordgo.Session, channelID string, err error)
- func SendReplyWithEmbed(sess *discordgo.Session, guildID string, msg *discordgo.MessageEmbed, ...) error
- func StopLoss(sess *discordgo.Session, guildID, ticker, author string, stop float32, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlertCrypto ¶
func AlertCryptoPT ¶
func AlertCryptoPTExit ¶
func AlertExpired ¶
func AlertOption ¶
func AlertOptionPT ¶
func AlertShort ¶
func AlertShortPT ¶
func AlertShortPTExit ¶
func AlertStock ¶
func AlertStockPT ¶
func AlertStockPTExit ¶
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 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 SendAlertWithEmbed ¶
func SendReplyWithEmbed ¶
func SendReplyWithEmbed(sess *discordgo.Session, guildID string, msg *discordgo.MessageEmbed, channelType int, ref *discordgo.MessageReference) error
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. |