Compare commits

..

No commits in common. "main" and "v0.2.0" have entirely different histories.
main ... v0.2.0

3 changed files with 3 additions and 11 deletions

View File

@ -1,7 +1,2 @@
## framework # framework
A discordgo bot framework with argument parsing, typeguards, and a few other cool tricks. Documentation coming soon:tm:
![license](https://img.shields.io/github/license/qpixel/framework)
[![GitHub stars](https://img.shields.io/github/stars/qpixel/framework)](https://github.com/qpixel/framework/stargazers)
[![Go Reference](https://pkg.go.dev/badge/github.com/qpixel/framework.svg)](https://pkg.go.dev/github.com/qpixel/framework)
A discordgo bot framework with argument parsing, argument typesafety, slash command support, and some QOL message response code. Documentation coming soon:tm:

View File

@ -269,9 +269,6 @@ func findAllOptionArgs(argString []string, keys []string, infoArgs *orderedmap.O
continue continue
} }
vv := iA.(*ArgInfo) vv := iA.(*ArgInfo)
if vv.Match == ArgContent {
return *args, true, argString, keys
}
if vv.Required { if vv.Required {
if vv.TypeGuard != String { if vv.TypeGuard != String {
var value string var value string

View File

@ -35,7 +35,7 @@ func RemoveItems(slice []string, indexes []int) []string {
} }
copy(newSlice, slice) copy(newSlice, slice)
for _, v := range indexes { for _, v := range indexes {
if len(newSlice) < v+1 && v != 0 { if len(newSlice) > v+1 && v != 0 {
v = v - 1 v = v - 1
} }
//newSlice[v] = newSlice[len(newSlice)-1] //newSlice[v] = newSlice[len(newSlice)-1]