Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 82fbaa7c7c70fdf4af2e412afbbc40cb9c680ad8 Author: Wim <wim@42.be> Date: Sat Apr 06 22:18:25 2019 +0000 Update tengo vendor and load the stdlib. Fixes #789 (#792) diff --git a/gateway/gateway.go b/gateway/gateway.go index 82be2a9..9957a21 100644 --- a/gateway/gateway.go +++ b/gateway/gateway.go @@ -106 +107 @@ import (   "github.com/42wim/matterbridge/bridge"   "github.com/42wim/matterbridge/bridge/config"   "github.com/d5/tengo/script" + "github.com/d5/tengo/stdlib"   lru "github.com/hashicorp/golang-lru"   "github.com/peterhellberg/emojilib"   "github.com/sirupsen/logrus" @@ -5036 +5047 @@ func modifyMessageTengo(filename string, msg *config.Message) error {   return err   }   s := script.New(res) + s.SetImports(stdlib.GetModuleMap(stdlib.AllModuleNames()...))   _ = s.Add("msgText", msg.Text)   _ = s.Add("msgUsername", msg.Username)   _ = s.Add("msgAccount", msg.Account) diff --git a/go.mod b/go.mod index 273ef6f..a3b47b5 100644 --- a/go.mod +++ b/go.mod @@ -77 +77 @@ require (   github.com/Jeffail/gabs v1.1.1 // indirect   github.com/Philipp15b/go-steam v1.0.1-0.20180818081528-681bd9573329   github.com/bwmarrin/discordgo v0.19.0 - github.com/d5/tengo v1.12.1 + github.com/d5/tengo v1.20.0   github.com/dfordsoft/golib v0.0.0-20180902042739-76ee6ab99bec   github.com/fsnotify/fsnotify v1.4.7   github.com/go-telegram-bot-api/telegram-bot-api v4.6.5-0.20181225215658-ec221ba9ea45+incompatible diff --git a/go.sum b/go.sum index c14505b..ea77656 100644 --- a/go.sum +++ b/go.sum @@ -158 +158 @@ github.com/bwmarrin/discordgo v0.19.0/go.mod h1:O9S4p+ofTFwB02em7jkpkV8M3R0/PUVO  github.com/coreos/etcd v3.3.10+incompatible/go.mod h1:uF7uidLiAD3TWHmW31ZFd/JWoc32PjwdhPthX9715RE=  github.com/coreos/go-etcd v2.0.0+incompatible/go.mod h1:Jez6KQU2B/sWsbdaef3ED8NzMklzPG4d5KIOhIy30Tk=  github.com/coreos/go-semver v0.2.0/go.mod h1:nnelYz7RCh+5ahJtPPxZlU+153eP4D4r3EedlOD2RNk= -github.com/d5/tengo v1.12.1 h1:libKkDM95CsZgYs6E5eiEaM9sbcw2EzJRSkr9o5NO4s= -github.com/d5/tengo v1.12.1/go.mod h1:gsbjo7lBXzBIWBd6NQp1lRKqqiDDANqBOyhW8rTlFsY= +github.com/d5/tengo v1.20.0 h1:lFmktzEGR6khlZu2MHUWJ5oDWS4l3jNRV/OhclZgcYc= +github.com/d5/tengo v1.20.0/go.mod h1:gsbjo7lBXzBIWBd6NQp1lRKqqiDDANqBOyhW8rTlFsY=  github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=  github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=  github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=