diff --git a/README.md b/README.md index f65a734..6eedc0a 100755 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ TODO: * ~~Stat Manipulation~~ * ~~Permission System~~ * ~~Character System~~ -* Dictionary for abbreviations (hp, ap, algn, xp) +* ~~Dictionary for abbreviations (hp, ap, algn, xp)~~ * Import/Export Character * Save Progress Midway * Story Interaction (through PM w/ dungeon master) diff --git a/bot.go b/bot.go index f004bc4..621af9e 100755 --- a/bot.go +++ b/bot.go @@ -25,6 +25,21 @@ var ( monsmap = make(map[string]string) ) +var dict = map[string]string{ + "hp": "health points", + "ap": "armour points", + "algn": "alignment", + "xp": "experience points", + "str": "strength", + "dex": "dexterity", + "wis": "wisdom", + "cha": "charisma", + "lvl": "level", + "hgt": "height", + "wgt": "weight", + "cls": "class", +} + func stringInSlice(a string, list []string) bool { // thanks stackoverflow for _, b := range list { @@ -56,6 +71,19 @@ func findArguments(msg string) []string { return args } +func loadSheet(file string) { + // TODO: JSON character sheets. + // http://github.com/kirbyman62/osric-character-sheet-to-json +} + +func exportSheet(nick string) { + // TODO +} + +func save() { + // TODO +} + func fillCharmap(nick string, cat string, item string, val string) { // thanks jmbi charmap = map[string]map[string]map[string]string { nick: map[string]map[string]string{ cat: map[string]string{ item: val, }, }, }