mirror of
https://github.com/IllusionMan1212/gorc.git
synced 2026-10-24 02:12:33 +00:00
refactor: cleanup initial impl and modularize everything
This commit is contained in:
@@ -16,20 +16,6 @@
|
||||
|
||||
package main
|
||||
|
||||
const welcomeMsg = `
|
||||
|
||||
/$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$$
|
||||
/$$__ $$ /$$__ $$ /$$__ $$ /$$_____/
|
||||
| $$ \ $$| $$ \ $$| $$ \__/| $$
|
||||
| $$ | $$| $$ | $$| $$ | $$
|
||||
| $$$$$$$| $$$$$$/| $$ | $$$$$$$
|
||||
\____ $$ \______/ |__/ \_______/
|
||||
/$$ \ $$
|
||||
| $$$$$$/
|
||||
\______/
|
||||
|
||||
`
|
||||
|
||||
/* --- IRC Ports --- */
|
||||
const (
|
||||
INSECURE_PORT = 6667
|
||||
@@ -90,19 +76,6 @@ const (
|
||||
PONG = "PONG" // Respond to a server PING
|
||||
)
|
||||
|
||||
/* --- IRC Message --- */
|
||||
type IRCMessage struct {
|
||||
Tags []Tag // starts with @ | Optional
|
||||
Source string // starts with : | Optional
|
||||
Command string // can either be a string or a numeric value | Required
|
||||
Parameters []string // Optional (Dependant on command)
|
||||
}
|
||||
|
||||
type Tag struct {
|
||||
key string
|
||||
value string
|
||||
}
|
||||
|
||||
/* --- Channel Types --- */
|
||||
// These are the channel prefixes for different types of channels
|
||||
const (
|
||||
|
||||
Reference in New Issue
Block a user