Coder Social home page Coder Social logo

voxel-fox-ltd / profile Goto Github PK

View Code? Open in Web Editor NEW
17.0 17.0 14.0 1.96 MB

A Discord bot for storing profiles, characters, and other user information in an easy and modular way.

License: GNU General Public License v2.0

Python 87.40% PLpgSQL 1.00% CSS 2.29% Jinja 6.16% JavaScript 3.15%
discord discord-py

profile's People

Contributors

4kaylum avatar aikocc avatar catdotjs avatar glitchmasta47 avatar iherogh avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar

profile's Issues

Max Profiles

It doesn't allow to change the value of the number from 0. The entire field is red and refuses to budge
image

NSFW support

An argument is to be made for marking profiles as NSFW, and thus only checkable within NSFW channels. This will help servers with moderation where they're unable to set up proper channel permissions themselves.

This could be a two-pronged issue: NSFW flag for profiles, and an NSFW flag for templates (which would in turn mark all profiles as NSFW).

Add subscription handling

If a user subscribes via PayPal (or Stripe?) then they can have a higher limit for profiles/templates.

Field reordering

Moderators should be able to reorder the fields of their templates.

bot.py file

I want to deploy the bot for the test on my local computer however, I could not see the entry point script line bot.py. Where is the entry script for deployment?

Profile bumping

Users should be able to "bump" profiles. This means that their current posted profile is deleted from the archive, and then resent to the bottom.

  • Moderators should be able to set the rate limit for bumping.
  • Bumping should only be available if an archive channel is set.
  • Bumping COULD be set to have different rate limits per role using commands and the default.

edittemplate possibilities

Is it intended to have only the possibility to edit this below with ,edittempalte?

What do you want to edit?
:one: Verification channel 
:two: Profile archive channel 
:three: Verified profile role

I wanted to add some fields in the existing template, but i don't see how.

Automatically verifying all profiles

Hi there! I'm currently using the bot to manage learner profiles on my developer Discord. I would love to be able to just automatically verify all profiles instead of having to do it manually.
Unfortunately I don't know enough python to contribute this feature myself :-/

Add profile decline logs

It's been requested that the decline reason, user, and moderator for a template profile get logged to a specified channel.

Remove profiles from archive when delted

  • Profiles should be removed from the archive when deleted
  • Profiles should be removed from the verification channel when deleted

This will require a new field in the field table of the database to store the message/channel ID of the message in question.

Add bot support commands for changing guild setting values

In guild_settings:

  • max_template_count
  • max_template_field_count
  • max_template_profile_count

In template:

  • max_field_count

These fields should not be editable by normal users.
The template's max_field_count may be added as an additional field to the edittemplate command for bot support users.

Be looser with checking image URLs

Just had an issue where an image URL with GET params on it failed to submit, which was especially an issue as it was from Discord. This should autocorrect.

Editing a prompt when not advanced can error

If a guild has set up their template with the advanced filter and then switched back to non-advanced, editing the prompt may fail if the character limit is hit for the modal.

Number of Profiles

Hi,

why can't I set the maximum amount of profiles in a template higher than 5? Is there any possibility to do that?
Thanks

`UnboundLocalError` hit in creating a template

The bot hit a Command raised an exception: UnboundLocalError: local variable 'payload' referenced before assignment error while running the ,createtemplate Character command.

Traceback (most recent call last):
  File "/home/kae/Profile/./cogs/template_commands.py", line 572, in get_field_to_edit
    return template.fields[payload.component.custom_id]
KeyError: 'NEW'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/kae/.local/lib/python3.8/site-packages/discord/ext/commands/core.py", line 85, in wrapped
    ret = await coro(*args, **kwargs)
  File "/home/kae/Profile/./cogs/template_commands.py", line 779, in createtemplate
    await ctx.invoke(self.bot.get_command("edittemplate"), template)
  File "/home/kae/.local/lib/python3.8/site-packages/discord/ext/commands/context.py", line 144, in invoke
    ret = await command.callback(*arguments, **kwargs)
  File "/home/kae/Profile/./cogs/template_commands.py", line 198, in edittemplate
    fields_have_changed = await converter
  File "/home/kae/Profile/./cogs/template_commands.py", line 388, in edit_field
    field_to_edit: localutils.Field = await self.get_field_to_edit(
  File "/home/kae/Profile/./cogs/template_commands.py", line 589, in get_field_to_edit
    field: localutils.Field = await self.create_new_field(
  File "/home/kae/Profile/./cogs/template_commands.py", line 913, in create_new_field
    self.bot.loop.create_task(payload.message.edit(
UnboundLocalError: local variable 'payload' referenced before assignment

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

Traceback (most recent call last):
  File "/home/kae/.local/lib/python3.8/site-packages/discord/ext/commands/bot.py", line 939, in invoke
    await ctx.command.invoke(ctx)
  File "/home/kae/.local/lib/python3.8/site-packages/discord/ext/commands/core.py", line 863, in invoke
    await injected(*ctx.args, **ctx.kwargs)
  File "/home/kae/.local/lib/python3.8/site-packages/discord/ext/commands/core.py", line 94, in wrapped
    raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: UnboundLocalError: local variable 'payload' referenced before assignment

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.