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