Skip to content

Commit

Permalink
naming stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
HashimTheArab committed Aug 21, 2021
1 parent ba59523 commit e2feb13
Show file tree
Hide file tree
Showing 23 changed files with 14 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
token.tok
token.tok
.idea
6 changes: 3 additions & 3 deletions Commands/BotCommands.go → commands/BotCommands.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package commands

import (
"FBI/Utils"
"github.com/Jviguy/SpeedyCmds/command/ctx"
"github.com/bwmarrin/discordgo"
"github.com/prim69/fbi-bot/utils"
"math"
"strconv"
"time"
Expand Down Expand Up @@ -61,7 +61,7 @@ func StatsCommand(ctx ctx.Ctx, session *discordgo.Session) error {
_, _ = SendEmbed(ctx, session, discordgo.MessageEmbed{
Color: 0xF0BBCE,
Author: &discordgo.MessageEmbedAuthor{
URL: Utils.DiscordLink,
URL: utils.DiscordLink,
Name: "Bot Information",
IconURL: "https://media.discordapp.net/attachments/814542881594671155/858957822918524978/unknown.png?width=458&height=473",
},
Expand All @@ -76,7 +76,7 @@ func StatsCommand(ctx ctx.Ctx, session *discordgo.Session) error {
},
{
Name: "About",
Value: session.State.User.Username + " is coded by **" + Utils.Author + "** in the Go programming language.",
Value: session.State.User.Username + " is coded by **" + utils.Author + "** in the Go programming language.\n" + "This bot is open source, the source code can be found at " + utils.GithubLink,
},
},
})
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module FBI
module github.com/prim69/fbi-bot

go 1.16

Expand All @@ -7,4 +7,4 @@ require (
github.com/bwmarrin/discordgo v0.23.2 // indirect
)

replace github.com/Jviguy/SpeedyCmds => ./SpeedyCmds
replace github.com/Jviguy/SpeedyCmds => ./lib/SpeedyCmds
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
package main

import (
"FBI/Utils"
"FBI/commands"
"fmt"
"github.com/bwmarrin/discordgo"
"github.com/prim69/fbi-bot/commands"
"github.com/prim69/fbi-bot/utils"
)

func main(){
dg, err := discordgo.New("Bot " + Utils.ReadToken())
dg, err := discordgo.New("Bot " + utils.ReadToken())

if err != nil {
panic(err)
Expand Down
2 changes: 1 addition & 1 deletion Utils/Config.go → utils/Config.go
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package Utils
package utils

import (
"bufio"
Expand Down
5 changes: 3 additions & 2 deletions Utils/Constants.go → utils/Constants.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package Utils
package utils

const (
DiscordLink = "https://discord.gg/sexmc"
GithubLink = "https://github.com/Prim69/FBI-Bot"
Author = "prim#0419"
)
)

0 comments on commit e2feb13

Please sign in to comment.