GithubHelp home page GithubHelp logo

goldy-bot / goldy-bot-v4 Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 0.0 26.87 MB

(LEGACY) BIG rewrite of Goldy Bot V3 but it's open source

Home Page: https://goldy-bot.github.io/Goldy-Bot-V4/

License: GNU General Public License v3.0

Python 83.85% JavaScript 0.49% CSS 10.21% Jinja 5.44%
python bot discord-py nextcord-py nextcord goldybot-v3 goldybot-v4 discord goldybot

goldy-bot-v4's Introduction

Goldy Bot V4 (Modern Rewrite)

Powered by Nextcord Pypi Badge Python Badge Docs Badge

⚠️ IS NOW DEPRECATED! Switch to Goldy Bot V5. 👋

What is this!

Goldy Bot V4 is yet another rewrite of Goldy Bot, a discord bot that I develop for FUN. This is the third rewrite but the first rewrite to become open source, I've done this to allow developers across the world to create add-ons/extenstions for my bot that I can then add to the official production bot.

Feel free to use this module to develop your extenstions.

Install/Set Up

  1. Install package from pip.

⚠️ THIS IS THE LAST VERSION OF V4 - Every other version above is V5

#Windows/Linux

pip install GoldyBot==4.0.dev25
  1. Download MongoDB Community. (You'll need this!) >>> https://www.mongodb.com/try/download/community

After finishing the install progress the MongoDB compass should open, copy the local host url and click connect. You'll need the url later!

  1. Now create a run.py file, type this and run it.
import GoldyBot

goldy = GoldyBot.Goldy()

goldy.start()

Goldy Bot should shut itself down and create a config folder containing a 'bot token' text file.

  1. Enter your discord bot token in the bot_token.txt file.
{ENTER BOT TOKEN HERE}

Save that! Make sure you pasted it WITHOUT the curly brackets ({}).

  1. Then in goldy.json edit the following for Goldy Bot to start functioning.
"database_name" : "",

"allowed_guilds" : {
}

Give the database a name and add your bot testing guild id to "allowed_guilds" or else Goldy Bot will refuse to work.

So like this! (This is just an example!)

"database_name" : "members_data",

"allowed_guilds" : {
    "863416692083916820" : "bot_test_server"
}
  1. Now run Goldy Bot. It will create another txt file and stop running. This is your database url, remember the url I told you to copy, paste that in this text file WITHOUT the curly brackets ({}).

  2. Then run Goldy Bot once again.

python run.py

Now you should see a folder being created for your guild and also a database folder in your MongoDB database.

  1. Now your all set for development!

More Docs Here


© Copyright (C) 2022 Dev Goldy (Under the GPL-3.0 License)

goldy-bot-v4's People

Contributors

thegoldenpro avatar

Stargazers

 avatar

goldy-bot-v4's Issues

Slash commands are showing paramaters that are not set in commands with variables.

image

@GoldyBot.command()
async def cache(self:Admin, ctx):
    cache_embed = GoldyBot.utility.goldy.embed.Embed(title=self.msg.cache.Embed.title)
    cache_embed.color = GoldyBot.utility.goldy.colours.BLUE

    cache_string = str(GoldyBot.cache.main_cache_dict)

    if len(cache_string) >= 5000:
        cache_embed.description = "Oh oh, the cache is way too long to display in an embed right now. I'll print it in the console instead."
        await ctx.send(embed=cache_embed)

        GoldyBot.logging.log("info", cache_string)
    else:
        cache_embed.description = f"```{GoldyBot.cache.main_cache_dict}```"
        await ctx.send(embed=cache_embed)

New reload mechanism

  • When we reload we change the slash command execute function.

  • When we unload just hide the slash command.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.