Skip to content

bitcrshr/glame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glame 🎮

Package Version Hex Docs

A client implementation of the Source RCON Protocol, inpsired by gorcon.

Adding to your project

gleam add glame

Usage

import gleam/io
import gleam/option.{None}
import gleam/string
import glame

pub fn main() {
  case glame.dial("127.0.0.1", 25_575, "password", None, None) {
    Ok(conn) -> {
      case glame.execute(conn, "ShowPlayers") {
        Ok(res) -> io.println(res)

        Error(e) -> io.println(string.inspect(e))
      }
    }

    Error(e) -> io.println(string.inspect(e))
  }
}

About

🎮 An RCON client implementation written in Gleam

Topics

Resources

License

Stars

Watchers

Forks

Languages