tw-discord-econ-fifo

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2024 License: MIT Imports: 19 Imported by: 0

README

tw-discord-econ-fifo

Small fifo bridge for discord. Allows to execute econ/rcon commands via discord.

building

go build .

# or

go install .

# or

go install github.com/jxsl13/tw-discord-econ-fifo@latest

running

Check out the Makefile for docker instructions.

$ ./tw-discord-econ-fifo --help
Environment variables:
  DISCORD_TOKEN      discord bot token from the discord developer website
  DISCORD_CHANNEL    channel id that the bot works on
  ECON_ADDRESS       ip:port
  ECON_PASSWORD      econ server password

Usage:
  tw-discord-econ-fifo [flags]

Flags:
  -c, --config string            .env config file path (or via env variable CONFIG)
      --discord-channel string   channel id that the bot works on
      --discord-token string     discord bot token from the discord developer website
      --econ-address string      ip:port
      --econ-password string     econ server password
  -h, --help                     help for tw-discord-econ-fifo

example .env config file:

DISCORD_TOKEN="MT...."
DISCORD_CHANNEL="1196208959123456789"
ECON_PASSWORD="secret_password"

# use this hostname in order to access the host system's ports from within the docker container
# otherwise you may preferrably use localhost:9303 (or any other port)
ECON_ADDRESS="host.docker.internal:9303"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL