Documentation ¶
Index ¶
- func AddVote(poll *polls.Poll, vote interface{}) error
- func ClosePoll(id int, api string) error
- func CreatePoll(poll interface{}, api string) (int, error)
- func DeletePoll(id int, api string) error
- func EditPoll(id int, api, privacy string, settings *polls.Settings) error
- func EditVote(poll *polls.Poll, vote interface{}) error
- func GetActivePolls(api string) ([]*polls.Poll, error)
- func GetAllPolls(api string) ([]*polls.Poll, error)
- func GetGraph(id int, color, typeChart, api string) (string, error)
- func GetPoll(id int, api string) (*polls.Poll, error)
- func Me(api string) ([]string, error)
- func OpenPoll(id int, api string) error
- func RemoveVote(poll *polls.Poll, choice string) error
- func Status() bool
- func Subscribers(api string) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePoll ¶
Creates a new poll with a generic poll interface{} and returns the poll_id
func GetActivePolls ¶
Returns only active polls stored in MasterPoll database.
func GetAllPolls ¶
Returns all your polls stored in MasterPoll database.
func RemoveVote ¶
RemoveVote removes your vote to a poll
func Subscribers ¶
Subscribers returns current bot subscribers
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.