mirror of
https://git.klmp200.net/ALFRED/ALFRED.git
synced 2025-01-18 10:36:44 +01:00
Fix CI
This commit is contained in:
parent
d43ffcb445
commit
e1d790e3fd
@ -14,7 +14,7 @@ pipeline:
|
||||
commands:
|
||||
- go get -v -d ./...
|
||||
- sh build_plugins.sh
|
||||
- go test ./...
|
||||
- go test . ./commands ./settings ./plugin_manager/ ./shared/
|
||||
publish:
|
||||
image: plugins/docker
|
||||
repo: klmp200/alfred
|
||||
|
@ -7,6 +7,7 @@ package plugin_manager
|
||||
import (
|
||||
tb "gopkg.in/tucnak/telebot.v2"
|
||||
"log"
|
||||
"path/filepath"
|
||||
"strings"
|
||||
"sync"
|
||||
)
|
||||
@ -30,7 +31,7 @@ func Init(_pluginDir string, bot *tb.Bot) {
|
||||
context = bot
|
||||
for _, fileName := range GetSoFiles(pluginDir) {
|
||||
var p PluginCtrl
|
||||
p.plugin = LoadSoFile(pluginDir + "/" + fileName)
|
||||
p.plugin = LoadSoFile(filepath.Join(pluginDir, fileName))
|
||||
if p.plugin != nil {
|
||||
p.running = false
|
||||
p.enable = true
|
||||
|
Loading…
Reference in New Issue
Block a user