Remove Common, Rework External Chat Support, & Bugfixes

This commit is contained in:
2023-06-19 03:07:03 -04:00
parent 5e4698495c
commit 2a2f6aeeb0
28 changed files with 81 additions and 146 deletions

View File

@@ -3,9 +3,10 @@ package app
import (
"log"
"os"
"path/filepath"
"plugin"
"github.com/yeslayla/birdbot/common"
"github.com/yeslayla/birdbot-common/common"
)
// LoadPlugin loads a plugin and returns its component if successful
@@ -49,7 +50,7 @@ func LoadPlugins(directory string) []common.Module {
continue
}
if comp := LoadPlugin(path.Name()); comp != nil {
if comp := LoadPlugin(filepath.Join(directory, path.Name())); comp != nil {
components = append(components, comp)
}
}