@mogul-development/mogulcord
TypeScript icon, indicating that this package has built-in type declarations

0.2.15 • Public • Published

MogulCord

a non shit discord client using the spec protocol

why?

because eris is fucking shit

about

  • uses the spec protocol
  • its made by (mostly me) so its good!
  • eris is shit

How to setup the gateway

  • setup a ubuntu VM or ubuntu WSL
  • install redis and rabbitmq-server
  • Download the gateway binary for your platform from the gateway releases
  • create a file called gateway.toml and follow the instructions in the gateway readme
  • run the gateway with gateway -loglevel debug (loglevel is optional here)

example gateway.toml:

token = "yes" # Discord token
events = ["MESSAGE_CREATE", "GUILD_CREATE", "GUILD_DELETE", "USER_UPDATE", "MESSAGE_REACTION_ADD"] # array of gateway event names to publish

# everything below is optional

intents = ["GUILDS", "GUILD_MESSAGES", "GUILD_MESSAGE_REACTIONS"] # array of gateway intents to send when identifying
# https://gist.github.com/msciotti/223272a6f976ce4fda22d271c23d72d9

[shards]
count = 1 # one shard
ids = [0]

[broker]
type = "amqp" # only supported type; any other value sends/receives from STDIN/STDOUT
group = "gateway"
message_timeout = "2m" # this is the default value: https://golang.org/pkg/time/#ParseDuration

[prometheus]
address = ":8080"
endpoint = "/metrics"

[shard_store]
type = "redis" # only supported type
prefix = "gateway" # string to prefix shard-store keys

[presence]
# https://discord.com/developers/docs/topics/gateway#update-status

[amqp]
url = "amqp://tm:Password@localhost/"

[redis]
url = "localhost:6379"
pool_size = 5 # size of Redis connection pool

Readme

Keywords

none

Package Sidebar

Install

npm i @mogul-development/mogulcord

Weekly Downloads

0

Version

0.2.15

License

none

Unpacked Size

89.8 kB

Total Files

24

Last publish

Collaborators

  • puyodead1