aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.gitignore15
-rw-r--r--chatcommands.go10
-rw-r--r--go.mod3
3 files changed, 28 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..66fd13c
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,15 @@
+# Binaries for programs and plugins
+*.exe
+*.exe~
+*.dll
+*.so
+*.dylib
+
+# Test binary, built with `go test -c`
+*.test
+
+# Output of the go coverage tool, specifically when used with LiteIDE
+*.out
+
+# Dependency directories (remove the comment below to include it)
+# vendor/
diff --git a/chatcommands.go b/chatcommands.go
new file mode 100644
index 0000000..568d1eb
--- /dev/null
+++ b/chatcommands.go
@@ -0,0 +1,10 @@
+package main
+
+func HandleChatCmd(cmd string, args []string) bool {
+ switch cmd {
+ default:
+ return false
+ }
+
+ return true
+}
diff --git a/go.mod b/go.mod
new file mode 100644
index 0000000..8ebf202
--- /dev/null
+++ b/go.mod
@@ -0,0 +1,3 @@
+module github.com/HimbeerserverDE/mt-multiserver-chatcommands
+
+go 1.17