MCPcopy Create free account

hub / github.com/InterStella0/stella_bot / functions

Functions972 in github.com/InterStella0/stella_bot

↓ 104 callersMethodget
(cls, name: str)
cogs/helpful/help_command/model.py:24
↓ 58 callersMethodappend
(self, rhs: Awaitable[Any])
utils/useful.py:323
↓ 41 callersMethodfetch
(self, api: StellaAPI)
cogs/useful/dalle.py:33
↓ 35 callersMethoddefault
(cls, ctx: commands.Context, **kwargs: Any)
utils/useful.py:61
↓ 32 callersMethodmaybe_reply
Replies if there is a message in between the command invoker and the bot's message.
utils/useful.py:258
↓ 29 callersMethodembed
(self, content: Optional[str] = None, *, reply: bool = True, mention_author: bool = False,
utils/useful.py:274
↓ 29 callersMethodreplace
(val)
cogs/useful/art_ai_generation.py:30
↓ 18 callersMethodupdate
(self, status: Status, *args, **kwargs)
cogs/useful/dalle.py:75
↓ 17 callersFunctionaware_utc
(dt: datetime.datetime, format: bool = True, *, mode: Optional[discord.utils.TimestampStyle] = '
utils/useful.py:383
↓ 16 callersFunctionplural
Auto corrects text to show plural or singular depending on the size number.
utils/useful.py:153
↓ 16 callersMethodreply
(self, *args: Any, **kwargs: Any)
utils/useful.py:230
↓ 16 callersMethodto_error
(cls, title: Optional[str] = "Error", color: Union[discord.Color, int] = discord.Color.red(),
utils/useful.py:67
↓ 15 callersMethodadd_item
(self, item: ui.Item)
utils/buttons.py:124
↓ 15 callersMethodclose
(self)
main.py:350
↓ 15 callersMethoddelete
(self, *, delay: Optional[float]=None)
utils/library_override.py:107
↓ 15 callersFunctionflag
(*, name: str = MISSING, aliases: List[str] = MISSING, default=MISSING, max_args: int = MISSING, over
utils/flags.py:16
↓ 14 callersMethod__init__
(self, _id: Union[discord.User, int], **kwargs: Any)
utils/errors.py:38
↓ 13 callersMethodconfirmed
(self, interaction: discord.Interaction, button: ui.Button)
utils/buttons.py:386
↓ 13 callersFunctionprint_exception
Prints the exception with proper traceback.
utils/useful.py:142
↓ 13 callersMethodupdate
Updates the view and menu, this method replace dataset that is bound to the menu, and changes it to a new page_source with a new dataset.
utils/buttons.py:215
↓ 12 callersMethod__init__
(self, ctx: StellaContext, *respondents: Union[discord.Member, discord.User], delete_after: b
utils/buttons.py:268
↓ 12 callersMethodsend
(self, content: str, **kwargs: Any)
cogs/games/wordle.py:621
↓ 12 callersMethodstart
(self, ctx: StellaContext, /, *, interaction: Optional[discord.Interaction] = None)
utils/buttons.py:574
↓ 12 callersMethodwait
(self)
cogs/useful/dalle.py:200
↓ 10 callersMethodget_member
(b_id: int)
cogs/find_bot/addbot_handler.py:297
↓ 9 callersMethodmobilenet_wrapper
(layer: Layer, filters: int, strides: int)
utils/prefix_ai.py:249
↓ 9 callersMethodupload_file
(self, *, byte: bytes, filename: str, retries: int = 4)
main.py:323
↓ 8 callersMethodcancel
(self, ctx: StellaContext, message: Union[discord.Message, discord.Object])
cogs/myself/command_handlers.py:47
↓ 8 callersMethodconvert
(self, ctx: StellaContext, argument: str)
utils/new_converters.py:65
↓ 8 callersMethodfind
(w: str, t: str)
cogs/useful/useful.py:197
↓ 8 callersMethodget_command
(self, command: str)
utils/new_converters.py:164
↓ 8 callersMethodget_message
Gets the message from the cache
main.py:302
↓ 8 callersFunctionrealign
Auto align a list of str with the highest substring before the key.
utils/useful.py:162
↓ 8 callersMethodreset_timeout
(self)
utils/buttons.py:75
↓ 8 callersMethodstop
(self)
utils/buttons.py:332
↓ 7 callersMethodclear
(self, ctx: StellaContext, amount: Optional[int] = 50, *, flags: ClearFlag)
cogs/myself/miscellaneous.py:63
↓ 7 callersFunctionevent_check
Event decorator check.
utils/decorators.py:47
↓ 7 callersMethodrequest
(self, method, url, **kwargs)
cogs/games/either_io/core.py:23
↓ 7 callersMethodsave
(self, path: str)
utils/prefix_ai.py:236
↓ 7 callersMethodstart
(self)
cogs/helpful/eval.py:90
↓ 7 callersMethodstart
(self, prompt: str)
cogs/useful/dalle.py:123
↓ 7 callersFunctiontry_call
one liner method that handles all errors in a single line which returns None, or Error instance depending on ret value.
utils/useful.py:30
↓ 6 callersMethod__init__
(self, view)
cogs/helpful/help_command/interaction.py:43
↓ 6 callersMethod__init__
(self, url: str)
cogs/games/wordle.py:532
↓ 6 callersMethodget_context
Override get_context to use a custom Context
main.py:306
↓ 6 callersMethodrequest
(self, endpoint: str, *, timeout: Optional[float] = None, **data: Any)
utils/ipc.py:122
↓ 6 callersMethodsend
(self, content: str, **kwargs: Any)
utils/buttons.py:278
↓ 6 callersMethodshow_page
(self, page_number: int)
utils/menus.py:93
↓ 5 callersMethod__init__
(self, result: WomboResult)
cogs/useful/wombo_dream/interaction.py:175
↓ 5 callersFunctionclean_prefix
(ctx: StellaContext, prefix: str)
cogs/find_bot/converters.py:35
↓ 5 callersMethodcreate_embed
(self, *, content: Optional[str] = None, url: Optional[str] = None)
cogs/games/wordle.py:172
↓ 5 callersMethoddispatch
(self, ctx: StellaContext, message: discord.Message)
cogs/myself/miscellaneous.py:101
↓ 5 callersMethodfrom_interaction
(cls, interaction: discord.Interaction)
cogs/games/button_ui.py:26
↓ 5 callersMethodfrom_json
factory method on data from a dictionary like object into BotAdded.
cogs/find_bot/models.py:82
↓ 5 callersMethodfrom_name
(cls, name: str)
utils/library_override.py:34
↓ 5 callersMethodhome_embed
(self)
cogs/useful/wombo_dream/interaction.py:244
↓ 5 callersMethodinvoke
(self, ctx: StellaContext, **flags)
main.py:177
↓ 5 callersMethodsearch
(*text_list)
cogs/find_bot/prefix_command_listeners.py:150
↓ 5 callersMethodstart
(self)
cogs/games/wordle.py:202
↓ 5 callersMethodstop
(self)
cogs/useful/wombo_dream/interaction.py:397
↓ 5 callersMethodtimestamp
(self, ctx: StellaContext, id: discord.Object, mode: Union[Choice[str], discord.utils.
cogs/useful/useful.py:232
↓ 5 callersMethodwrap
(self, b: ui.Item)
utils/buttons.py:117
↓ 4 callersMethod__init__
(self, http: aiohttp.ClientSession)
cogs/useful/dalle.py:68
↓ 4 callersMethod_request
(self, method: str, url: str, **kwargs)
utils/ipc.py:258
↓ 4 callersMethodcalc_layer
Get the dot product and use sigmoid as activation function
utils/prefix_ai.py:58
↓ 4 callersMethodconvert
(cls, ctx: StellaContext, argument: str)
cogs/find_bot/bots.py:44
↓ 4 callersFunctionexcept_retry
(callback: Callable[..., Any], *args: Any, multiplier: int = 3, retries: int = 3, error
utils/useful.py:507
↓ 4 callersMethodform_re_const
(*iterables: List[str])
utils/parser.py:127
↓ 4 callersMethodget_command_signature
(self, command: StellaCommands, /, ctx=None)
cogs/helpful/help_command/core.py:19
↓ 4 callersFunctionget_majority_color
(b: io.BytesIO)
utils/image_manipulation.py:185
↓ 4 callersFunctionislight
(r: int, g: int, b: int)
utils/image_manipulation.py:191
↓ 4 callersFunctionpercent
(per: int)
utils/image_manipulation.py:110
↓ 4 callersMethodpredict
(self, image: Image.Image)
utils/prefix_ai.py:260
↓ 4 callersMethodprocess_commands
Override process_commands to call typing every invoke
main.py:313
↓ 4 callersFunctionprocess_image
(avatar_bytes: io.BytesIO, target: io.BytesIO)
utils/image_manipulation.py:162
↓ 4 callersFunctionsearch
c_codes/parse_find.c:70
↓ 4 callersMethodsend
(self)
cogs/helpful/source.py:90
↓ 4 callersMethodstop
(self)
cogs/helpful/eval.py:163
↓ 4 callersMethodstop
(self)
cogs/games/wordle.py:184
↓ 4 callersMethodupdate_compile
(self)
cogs/find_bot/prefix_command_listeners.py:46
↓ 4 callersMethodupdate_interface
(self, interaction: discord.Interaction, target_page: int)
cogs/useful/wombo_dream/interaction.py:534
↓ 3 callersMethod__init__
(self, source: PageSource, *, generate_page: bool = True, **kwargs: Any)
utils/menus.py:13
↓ 3 callersMethod__init__
(self, is_bot: Optional[bool] = True, user_check: Optional[bool] = True, dont_fetch: Optional
utils/new_converters.py:59
↓ 3 callersMethod__init__
(self, ctx: StellaContext)
cogs/helpful/eval.py:75
↓ 3 callersMethod__init__
(self, data: List[BotPrefixes], count_mode: bool)
cogs/find_bot/bots.py:80
↓ 3 callersMethodadd_item_pos
(self, button: discord.ui.Button, pos: int)
cogs/useful/wombo_dream/interaction.py:366
↓ 3 callersFunctionaislice
(citerator: AsyncGenerator[Any, Any], cut: int)
utils/useful.py:457
↓ 3 callersFunctionbutton
The only purpose of this is adding custom `stay_active` kwarg that prevents button from being deactivated by page bounds checks
utils/buttons.py:49
↓ 3 callersMethodclean_up
(self, message: discord.Message)
utils/buttons.py:763
↓ 3 callersMethodclose
(self)
utils/ipc.py:291
↓ 3 callersMethodcogs_handler
(self, ctx: StellaContext, extensions: ValidCog, method: Literal["load", "unload",
cogs/myself/cog_handlers.py:13
↓ 3 callersMethodconfirmation
(self, content: str, delete_after: bool = False, *, to_respond: Optional[Union[disc
utils/useful.py:297
↓ 3 callersMethodconvert
(cls, ctx: StellaContext, argument: str)
cogs/find_bot/models.py:31
↓ 3 callersMethodconvert_value
(self, key: str, converter: Any)
cogs/games/either_io/models.py:44
↓ 3 callersFunctioncount_source_lines
(root: str)
utils/useful.py:379
↓ 3 callersMethodform_embed
(self)
cogs/helpful/eval.py:82
↓ 3 callersMethodfrom_json
(cls, raw_data)
cogs/useful/wombo_dream/model.py:102
↓ 3 callersMethodfrom_response
(cls, payload: Dict[str, Any])
cogs/useful/wombo_dream/model.py:37
↓ 3 callersMethodgenerate_page
(self, content: Union[discord.Embed, str], maximum: int)
utils/menus.py:62
↓ 3 callersMethodget_arg_parser
Gets a word that ends with ',
utils/greedy_parser.py:66
next →1–100 of 972, ranked by callers