Giter Club home page Giter Club logo

placeholder-chan's Introduction

invite-badge

love-badge nextcord-badge

Illustration: Dead Line (@DeddoRain)

This is the source code for Placeholder-Chan, a failed project of mine from two years ago. I decided to finish it and upload it. What you're getting here isn't exactly what I left untouched for two years, but it's mostly unchanged aside from a few improvements to the code and updates to the character info. So aside from a few improvements and updates, you're getting essentially what is my horrible code from two years ago.

The Story

So about two years ago, the SiIvaGunner: King for Another Day Tournament was a thing. At the time, I was heavily-invested in high-quality rips and the shitposty nature of them, as I was a very shitposty person. I knew nothing of making music or art, but being the person I am, I still wanted to contribute something. So, I made a Discord bot and called it Placeholder-Chan, who is one half of the bonus character Fighting Placeholder Team. I used my Mewtwo Bot as a base. The Placeholder-Chan bot essentially acts as a knowledge base for the tournament and can post the source list for each character on-demand. I made the bot, then proposed the idea of it to one of the official SiIvaGunner Discord admins. They shot me down, and I never touched the bot again.

Fast-forward to today. I was looking at old projects, and I saw Placeholder-Chan's files, sitting untouched. I thought I should finish it, so I did. I like to have all my projects be open-source, so it's here now. I also threw it up on my Raspberry Pi because why not.

How to run the bot

Why are you people so invested in running my shitty projects... sigh okay, so...

Cloning the repo

Clone the repo:

git clone https://github.com/sks316/placeholder-chan.git

Installing dependencies

Make sure you've installed Python. If it's not installed, go install it and come back.

Once you've installed Python or if you already had it installed, cd into the cloned directory and run the following:

pip install -r requirements.txt

This will install everything that Placeholder-Chan needs to run.

Config file

Since it's based on my Mewtwo bot, and since I'm not as much of an idiot as I like to think, Placeholder-Chan also needs a config file.

Go to the directory containing placeholder-chan.py then make a new file called placeholder_config.py. This will be our config file. Next (hopefully you've already done this), go to the Discord Developer Portal and create an application. Once done, go to Bot and hit the Add Bot button. Once done, you should be able to get your token! I SHOULDN'T HAVE TO SAY THIS, BUT DO NOT SHARE THIS TOKEN WITH ANYONE, IT WILL GIVE FULL ACCESS TO YOUR BOT.

You'll also want to enable both the Presence Intent and Server Members Intent.

Now open placeholder_config.py in your favorite text editor and paste the following:

token = 'YOUR-TOKEN-HERE'
owner = YOUR-USER-ID-HERE

Replace YOUR-TOKEN-HERE with your bot's token and YOUR-USER-ID-HERE with your User ID, not your bot's.

Running the bot

Finally, we run the bot. cd into the directory you cloned the repo to and run:

py placeholder-chan.py

Or, if you're using Linux:

python3 placeholder-chan.py

placeholder-chan's People

Contributors

sks316 avatar

Stargazers

Aidan avatar

Watchers

 avatar

placeholder-chan's Issues

v1.1 - Upgrade to Nextcord

Discord.py is deprecated, and I've been procrastinating on bringing my projects up to date. I'm gonna start working on that now.

Progress:

  • Change Discord.py to Nextcord in requirements.txt
  • Switch placeholder.py to Nextcord
  • Switch cogs to Nextcord
  • Search for and fix any stray instances of Discord.py
  • Push changes to GitHub
  • Test changes
  • Push to stable

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.