discord/fetch/config.go
Ophestra Umiker 2c859c1a46
rpcfetch: add template program
Since documentation does not yet exist a template program is added showcasing the intended usage of this library. A configuration interface will be added in a future commit.

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
2024-06-20 22:19:38 +09:00

27 lines
561 B
Go

package main
import (
"git.ophivana.moe/cat/rpcfetch"
)
type config struct {
ID string
Activity *rpcfetch.Activity
}
// sample config so the program works out of the box
var defaultConfig = config{
ID: "1252927154480611351",
Activity: &rpcfetch.Activity{
State: "%used / %total",
Details: "%1min %5min %15min",
Timestamps: &rpcfetch.ActivityTimestamps{Start: &launchTime},
Assets: &rpcfetch.ActivityAssets{
LargeImage: "yorha",
LargeText: "1252927154480611351",
SmallImage: "flan",
SmallText: "PID: %pid",
},
},
}