rename module

This commit is contained in:
watn3y 2023-12-29 00:25:33 +01:00
parent 257ed6f82b
commit d5272262da
11 changed files with 48 additions and 40 deletions

11
bot.go
View file

@ -1,12 +1,13 @@
package main
import (
"github.com/rs/zerolog/log"
"time"
"watn3y/bloaterbotv3/botIO"
"watn3y/bloaterbotv3/commands"
"watn3y/bloaterbotv3/commands/notify"
"watn3y/bloaterbotv3/text"
"watn3y/bloaterbot/botIO"
"watn3y/bloaterbot/commands"
"watn3y/bloaterbot/commands/notify"
"watn3y/bloaterbot/text"
"github.com/rs/zerolog/log"
)
func bot() {

View file

@ -1,9 +1,10 @@
package botIO
import (
"watn3y/bloaterbot/config"
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
"github.com/rs/zerolog/log"
"watn3y/bloaterbotv3/config"
)
func Authenticate() (tgbotapi.UpdatesChannel, *tgbotapi.BotAPI) {

View file

@ -1,17 +1,18 @@
package commands
import (
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
"github.com/rs/zerolog/log"
"os"
"strconv"
"strings"
"time"
"watn3y/bloaterbotv3/botIO"
"watn3y/bloaterbotv3/commands/download"
"watn3y/bloaterbotv3/commands/gaypoints"
"watn3y/bloaterbotv3/commands/notify"
"watn3y/bloaterbotv3/config"
"watn3y/bloaterbot/botIO"
"watn3y/bloaterbot/commands/download"
"watn3y/bloaterbot/commands/gaypoints"
"watn3y/bloaterbot/commands/notify"
"watn3y/bloaterbot/config"
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
"github.com/rs/zerolog/log"
)
func Commands(update tgbotapi.Update, bot *tgbotapi.BotAPI) {

View file

@ -2,8 +2,6 @@ package download
import (
"errors"
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
"github.com/rs/zerolog/log"
"io"
log2 "log"
"math/rand"
@ -16,9 +14,12 @@ import (
"strconv"
"strings"
"time"
"watn3y/bloaterbotv3/botIO"
"watn3y/bloaterbotv3/commonlogic"
"watn3y/bloaterbotv3/config"
"watn3y/bloaterbot/botIO"
"watn3y/bloaterbot/commonlogic"
"watn3y/bloaterbot/config"
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
"github.com/rs/zerolog/log"
)
func Download(update tgbotapi.Update, bot *tgbotapi.BotAPI) {

View file

@ -1,13 +1,14 @@
package gaypoints
import (
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
"github.com/rs/zerolog/log"
"strconv"
"strings"
"watn3y/bloaterbotv3/botIO"
"watn3y/bloaterbotv3/commonlogic"
"watn3y/bloaterbotv3/config"
"watn3y/bloaterbot/botIO"
"watn3y/bloaterbot/commonlogic"
"watn3y/bloaterbot/config"
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
"github.com/rs/zerolog/log"
)
func GetGP(update tgbotapi.Update, bot *tgbotapi.BotAPI) {

View file

@ -1,13 +1,14 @@
package notify
import (
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
"github.com/rs/zerolog/log"
"regexp"
"strconv"
"strings"
"time"
"watn3y/bloaterbotv3/botIO"
"watn3y/bloaterbot/botIO"
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
"github.com/rs/zerolog/log"
)
func Reminder(update tgbotapi.Update, bot *tgbotapi.BotAPI) {

2
go.mod
View file

@ -1,4 +1,4 @@
module watn3y/bloaterbotv3
module watn3y/bloaterbot
go 1.21

View file

@ -5,10 +5,10 @@ import (
"fmt"
"os"
"time"
"watn3y/bloaterbotv3/commands/gaypoints"
"watn3y/bloaterbotv3/commands/notify"
"watn3y/bloaterbotv3/config"
"watn3y/bloaterbotv3/webserver"
"watn3y/bloaterbot/commands/gaypoints"
"watn3y/bloaterbot/commands/notify"
"watn3y/bloaterbot/config"
"watn3y/bloaterbot/webserver"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"

View file

@ -1,9 +1,10 @@
package balonlyl
import (
"watn3y/bloaterbot/botIO"
"watn3y/bloaterbot/config"
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
"watn3y/bloaterbotv3/botIO"
"watn3y/bloaterbotv3/config"
)
func Balonlyl(update tgbotapi.Update, bot *tgbotapi.BotAPI) {

View file

@ -1,13 +1,14 @@
package text
import (
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
"github.com/rs/zerolog/log"
"strings"
"time"
"watn3y/bloaterbotv3/commonlogic"
"watn3y/bloaterbotv3/config"
"watn3y/bloaterbotv3/text/balonlyl"
"watn3y/bloaterbot/commonlogic"
"watn3y/bloaterbot/config"
"watn3y/bloaterbot/text/balonlyl"
tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api/v5"
"github.com/rs/zerolog/log"
)
func Matcher(update tgbotapi.Update, bot *tgbotapi.BotAPI) {

View file

@ -2,7 +2,7 @@ package webserver
import (
"net/http"
"watn3y/bloaterbotv3/config"
"watn3y/bloaterbot/config"
"github.com/rs/zerolog/log"
)