Simple script for post server count from database to diferent discord list websites.
- A postgresql database.
- A schema called discord.
- A table called discord.shard_guilds.
- A credentials.conf file with all your credentials
CREATE SCHEMA discord AUTHORIZATION your_database_user;
CREATE TABLE shard_stats (
id int4 NOT NULL,
guild_count int4 NOT NULL,
CONSTRAINT shard_stats_pkey PRIMARY KEY (id)
);
go run main
go build
./stats-poster.exe
go build
chmod +x stats-poster
./stats-poster
crontab -e
@hourly cd /path/to/binary && stats-poster
or
0 * * * * cd /path/to/binary && stats-poster