|
|
|
@ -1,4 +1,4 @@
@@ -1,4 +1,4 @@
|
|
|
|
|
package main |
|
|
|
|
package cmd |
|
|
|
|
|
|
|
|
|
import ( |
|
|
|
|
"github.com/kf5grd/keybasebot" |
|
|
|
@ -6,7 +6,13 @@ import (
@@ -6,7 +6,13 @@ import (
|
|
|
|
|
"samhofi.us/x/keybase/v2/types/chat1" |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
func setNsfw(m chat1.MsgSummary, b *keybasebot.Bot) (bool, error) { |
|
|
|
|
var NsfwAd = chat1.UserBotCommandInput{ |
|
|
|
|
Name: "nsfw", |
|
|
|
|
Usage: "<add/del> <here,convid>", |
|
|
|
|
Description: "Enables or Disables NSFW commands for conversations", |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func SetNsfw(m chat1.MsgSummary, b *keybasebot.Bot) (bool, error) { |
|
|
|
|
b.KB.SendMessageByConvID(m.ConvID, "Pong!") |
|
|
|
|
b.Logger.Info("owner command in convid %s", m.ConvID) |
|
|
|
|
return true, nil |