refactor: cleanup initial impl and modularize everything

This commit is contained in:
2021-11-13 06:38:12 +02:00
parent 867e874ed3
commit 4bdb4a0fb3
10 changed files with 440 additions and 331 deletions
-27
View File
@@ -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 (