GithubHelp home page GithubHelp logo

rekulous / clonecord-bot Goto Github PK

View Code? Open in Web Editor NEW
45.0 45.0 31.0 22.88 MB

A Discord.py bot for Running GClone, an RClone mod that allows multiple Google Service Account configuration. Inspired by Telegram MirrorBots and CloneBot.

License: GNU General Public License v3.0

Python 98.46% Dockerfile 1.25% Shell 0.30%
bot discord discord-py docker gclone gdrive gdrive-bot google-drive heroku heroku-bot megadrive python rclone

clonecord-bot's Introduction

Hi there ๐Ÿ‘‹, I'm Rekulous!

clonecord-bot's People

Contributors

iamtakingithard avatar razorback360 avatar reaitten avatar rekulous avatar taskylizard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

clonecord-bot's Issues

Struggling with build

I have tried two methods to get this working. The first is the following:

  1. Downloaded the repo as zip. Extracted it to a folder.
  2. Created a discord bot. Copied into it to my server with admin privileges given to the bot.
  3. Copied gclone.exe to the folder where I have the repo.
  4. Replaced rclone.conf with the config that I use normally with my rclone.
  5. Installed requirements.txt.
  6. Edited app.json file and added my prefix ("!") and the token of my discord bot (yes, the token, not the client secret or ID or anything else).
  7. Copied 100 service accounts .json files into the accounts folder.
  8. Ran python CloneCord.py through cmd prompt which exited with errors due to discord package, it seems.
C:\CloneCord-Bot-main\CloneCord-Bot-main>python` clonecord.py
Traceback (most recent call last):
  File "C:\Users\X\AppData\Roaming\Python\Python38\site-packages\discord\http.py", line 300, in static_login
    data = await self.request(Route('GET', '/users/@me'))
  File "C:\Users\X\AppData\Roaming\Python\Python38\site-packages\discord\http.py", line 254, in request
    raise HTTPException(r, data)
discord.errors.HTTPException: 401 Unauthorized (error code: 0): 401: Unauthorized

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "clonecord.py", line 414, in <module>
    bot.run(TOKEN)
  File "C:\Users\X\AppData\Roaming\Python\Python38\site-packages\discord\client.py", line 723, in run
    return future.result()
  File "C:\Users\X\AppData\Roaming\Python\Python38\site-packages\discord\client.py", line 702, in runner
    await self.start(*args, **kwargs)
  File "C:\Users\X\AppData\Roaming\Python\Python38\site-packages\discord\client.py", line 665, in start
    await self.login(*args, bot=bot)
  File "C:\Users\X\AppData\Roaming\Python\Python38\site-packages\discord\client.py", line 511, in login
    await self.http.static_login(token.strip(), bot=bot)
  File "C:\Users\X\AppData\Roaming\Python\Python38\site-packages\discord\http.py", line 304, in static_login
    raise LoginFailure('Improper token has been passed.') from exc
discord.errors.LoginFailure: Improper token has been passed.
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000001B1BF3788B0>
Traceback (most recent call last):
  File "C:\Program Files\Python38\lib\asyncio\proactor_events.py", line 116, in __del__
    self.close()
  File "C:\Program Files\Python38\lib\asyncio\proactor_events.py", line 108, in close
    self._loop.call_soon(self._call_connection_lost, None)
  File "C:\Program Files\Python38\lib\asyncio\base_events.py", line 719, in call_soon
    self._check_closed()
  File "C:\Program Files\Python38\lib\asyncio\base_events.py", line 508, in _check_closed
    raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed

The second one was the heroku method. I imported my private repo with edited files as in the first method and even added the config variables just in case. Sadly, this didn't work either. It just hangs and won't start and the log isn't helpful.

`2021-10-08T20:51:30.348280+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=x.herokuapp.com request_id=e4155666-3339-4416-977d-d04998e98165 fwd="212.5.215.150" dyno= connect= service= status=503 bytes= protocol=https
2021-10-08T20:51:31.406088+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=x.herokuapp.com request_id=57466b37-4642-49ab-8704-e6ce2840525c fwd="212.5.215.150" dyno= connect= service= status=503 bytes= protocol=https`

This is my first discord bot, so I am not sure if I am doing something incorrectly. I have mostly been using telegram bots until now.
Thank you for making this, I appreciate any help you can offer :)

error with bot, worked for over a year.

migrated to a new machine, unknown as to why im getting this error, all configs etc are all okay:

2023/02/05 16:16:40 Failed to create file system for "GC:{1Rm1si07YNYhTicsCO0uhr7nC7xjT-2gc}": drive: failed when making oauth client: failed to create oauth client: empty token found - please run rclone config again

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.