Categorygithub.com/ciphercord/gophercord
module
0.0.0-20240519205015-155047955036
Repository: https://github.com/ciphercord/gophercord.git
Documentation: pkg.go.dev

# README

[!CAUTION] Anyone can interact with the CipherCord API. Please sanitize responses to avoid errors and possible hijacking attempts.

GopherCord

MIT License Go Report Card

GopherCord is a set of Go packages designed to aid in interacting with the CipherCord API from Go.

Example

// simple message net
package main

import (
	"fmt"
	"log"

	ccbot "github.com/ciphercord/gophercord/bot"
	ccmsg "github.com/ciphercord/gophercord/message"
)

func main() {
	if err := ccbot.Init(); err != nil {
		log.Fatal(err)
	}

	for {
		data := <-ccbot.Messages

		umsg, err := ccmsg.Unpackage(data, "MyPrivateKey")
		if err == ccmsg.ErrUnmatched {
			continue
		} else if err != nil {
			log.Fatal(err)
		}

		fmt.Printf("%s: %s\n", umsg.Author, umsg.Content)
	}
}

# Packages

Package designed for interacting with the official CipherCord Discord bot.
Package designed with functions to aid in creating, packaging, and unpackaging CipherCord messages.