-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
81a91da
commit 825c411
Showing
115 changed files
with
39,836 additions
and
49 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Sphinx build info version 1 | ||
# This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. | ||
config: 4e03f49a9d142a89a2390178951d5cb8 | ||
tags: 645f666f9bcd5a90fca523b33c5a78b7 |
Empty file.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
382 changes: 382 additions & 0 deletions
382
docs/_build/html/_modules/cogs/listeners/on_member_join.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,382 @@ | ||
|
||
<!DOCTYPE html> | ||
|
||
|
||
<html lang="en" > | ||
|
||
<head> | ||
<meta charset="utf-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>cogs.listeners.on_member_join — FinTwit Bot 1.1 documentation</title> | ||
|
||
|
||
|
||
<script data-cfasync="false"> | ||
document.documentElement.dataset.mode = localStorage.getItem("mode") || ""; | ||
document.documentElement.dataset.theme = localStorage.getItem("theme") || "light"; | ||
</script> | ||
|
||
<!-- Loaded before other Sphinx assets --> | ||
<link href="../../../_static/styles/theme.css?digest=e353d410970836974a52" rel="stylesheet" /> | ||
<link href="../../../_static/styles/bootstrap.css?digest=e353d410970836974a52" rel="stylesheet" /> | ||
<link href="../../../_static/styles/pydata-sphinx-theme.css?digest=e353d410970836974a52" rel="stylesheet" /> | ||
|
||
|
||
<link href="../../../_static/vendor/fontawesome/6.1.2/css/all.min.css?digest=e353d410970836974a52" rel="stylesheet" /> | ||
<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../_static/vendor/fontawesome/6.1.2/webfonts/fa-solid-900.woff2" /> | ||
<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../_static/vendor/fontawesome/6.1.2/webfonts/fa-brands-400.woff2" /> | ||
<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../_static/vendor/fontawesome/6.1.2/webfonts/fa-regular-400.woff2" /> | ||
|
||
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=a746c00c" /> | ||
<link rel="stylesheet" type="text/css" href="../../../_static/graphviz.css?v=eafc0fe6" /> | ||
|
||
<!-- Pre-loaded scripts that we'll load fully later --> | ||
<link rel="preload" as="script" href="../../../_static/scripts/bootstrap.js?digest=e353d410970836974a52" /> | ||
<link rel="preload" as="script" href="../../../_static/scripts/pydata-sphinx-theme.js?digest=e353d410970836974a52" /> | ||
|
||
<script src="../../../_static/documentation_options.js?v=7ff6d70c"></script> | ||
<script src="../../../_static/doctools.js?v=888ff710"></script> | ||
<script src="../../../_static/sphinx_highlight.js?v=dc90522c"></script> | ||
<script>DOCUMENTATION_OPTIONS.pagename = '_modules/cogs/listeners/on_member_join';</script> | ||
<link rel="index" title="Index" href="../../../genindex.html" /> | ||
<link rel="search" title="Search" href="../../../search.html" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"/> | ||
<meta name="docsearch:language" content="en"/> | ||
</head> | ||
|
||
|
||
<body data-bs-spy="scroll" data-bs-target=".bd-toc-nav" data-offset="180" data-bs-root-margin="0px 0px -60%" data-default-mode=""> | ||
|
||
|
||
|
||
<a class="skip-link" href="#main-content">Skip to main content</a> | ||
|
||
<input type="checkbox" | ||
class="sidebar-toggle" | ||
name="__primary" | ||
id="__primary"/> | ||
<label class="overlay overlay-primary" for="__primary"></label> | ||
|
||
<input type="checkbox" | ||
class="sidebar-toggle" | ||
name="__secondary" | ||
id="__secondary"/> | ||
<label class="overlay overlay-secondary" for="__secondary"></label> | ||
|
||
<div class="search-button__wrapper"> | ||
<div class="search-button__overlay"></div> | ||
<div class="search-button__search-container"> | ||
<form class="bd-search d-flex align-items-center" | ||
action="../../../search.html" | ||
method="get"> | ||
<i class="fa-solid fa-magnifying-glass"></i> | ||
<input type="search" | ||
class="form-control" | ||
name="q" | ||
id="search-input" | ||
placeholder="Search the docs ..." | ||
aria-label="Search the docs ..." | ||
autocomplete="off" | ||
autocorrect="off" | ||
autocapitalize="off" | ||
spellcheck="false"/> | ||
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span> | ||
</form></div> | ||
</div> | ||
|
||
<nav class="bd-header navbar navbar-expand-lg bd-navbar"> | ||
<div class="bd-header__inner bd-page-width"> | ||
<label class="sidebar-toggle primary-toggle" for="__primary"> | ||
<span class="fa-solid fa-bars"></span> | ||
</label> | ||
|
||
<div class="navbar-header-items__start"> | ||
|
||
<div class="navbar-item"> | ||
|
||
|
||
<a class="navbar-brand logo" href="../../../index.html"> | ||
|
||
|
||
|
||
|
||
|
||
<p class="title logo__title">FinTwit Bot 1.1 documentation</p> | ||
|
||
</a></div> | ||
|
||
</div> | ||
|
||
|
||
<div class="col-lg-9 navbar-header-items"> | ||
|
||
<div class="me-auto navbar-header-items__center"> | ||
|
||
<div class="navbar-item"><nav class="navbar-nav"> | ||
<p class="sidebar-header-items__title" | ||
role="heading" | ||
aria-level="1" | ||
aria-label="Site Navigation"> | ||
Site Navigation | ||
</p> | ||
<ul class="bd-navbar-elements navbar-nav"> | ||
|
||
<li class="nav-item"> | ||
<a class="nav-link nav-internal" href="../../../modules.html"> | ||
Modules | ||
</a> | ||
</li> | ||
|
||
</ul> | ||
</nav></div> | ||
|
||
</div> | ||
|
||
|
||
<div class="navbar-header-items__end"> | ||
|
||
<div class="navbar-item navbar-persistent--container"> | ||
|
||
<script> | ||
document.write(` | ||
<button class="btn btn-sm navbar-btn search-button search-button__button" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip"> | ||
<i class="fa-solid fa-magnifying-glass"></i> | ||
</button> | ||
`); | ||
</script> | ||
</div> | ||
|
||
|
||
<div class="navbar-item"> | ||
<script> | ||
document.write(` | ||
<button class="theme-switch-button btn btn-sm btn-outline-primary navbar-btn rounded-circle" title="light/dark" aria-label="light/dark" data-bs-placement="bottom" data-bs-toggle="tooltip"> | ||
<span class="theme-switch" data-mode="light"><i class="fa-solid fa-sun"></i></span> | ||
<span class="theme-switch" data-mode="dark"><i class="fa-solid fa-moon"></i></span> | ||
<span class="theme-switch" data-mode="auto"><i class="fa-solid fa-circle-half-stroke"></i></span> | ||
</button> | ||
`); | ||
</script></div> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
|
||
<div class="navbar-persistent--mobile"> | ||
<script> | ||
document.write(` | ||
<button class="btn btn-sm navbar-btn search-button search-button__button" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip"> | ||
<i class="fa-solid fa-magnifying-glass"></i> | ||
</button> | ||
`); | ||
</script> | ||
</div> | ||
|
||
|
||
|
||
</div> | ||
|
||
</nav> | ||
|
||
<div class="bd-container"> | ||
<div class="bd-container__inner bd-page-width"> | ||
|
||
<div class="bd-sidebar-primary bd-sidebar hide-on-wide"> | ||
|
||
|
||
|
||
<div class="sidebar-header-items sidebar-primary__section"> | ||
|
||
|
||
<div class="sidebar-header-items__center"> | ||
|
||
<div class="navbar-item"><nav class="navbar-nav"> | ||
<p class="sidebar-header-items__title" | ||
role="heading" | ||
aria-level="1" | ||
aria-label="Site Navigation"> | ||
Site Navigation | ||
</p> | ||
<ul class="bd-navbar-elements navbar-nav"> | ||
|
||
<li class="nav-item"> | ||
<a class="nav-link nav-internal" href="../../../modules.html"> | ||
Modules | ||
</a> | ||
</li> | ||
|
||
</ul> | ||
</nav></div> | ||
|
||
</div> | ||
|
||
|
||
|
||
<div class="sidebar-header-items__end"> | ||
|
||
<div class="navbar-item"> | ||
<script> | ||
document.write(` | ||
<button class="theme-switch-button btn btn-sm btn-outline-primary navbar-btn rounded-circle" title="light/dark" aria-label="light/dark" data-bs-placement="bottom" data-bs-toggle="tooltip"> | ||
<span class="theme-switch" data-mode="light"><i class="fa-solid fa-sun"></i></span> | ||
<span class="theme-switch" data-mode="dark"><i class="fa-solid fa-moon"></i></span> | ||
<span class="theme-switch" data-mode="auto"><i class="fa-solid fa-circle-half-stroke"></i></span> | ||
</button> | ||
`); | ||
</script></div> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
|
||
<div class="sidebar-primary-items__end sidebar-primary__section"> | ||
</div> | ||
|
||
<div id="rtd-footer-container"></div> | ||
|
||
|
||
</div> | ||
|
||
<main id="main-content" class="bd-main"> | ||
|
||
|
||
<div class="bd-content"> | ||
<div class="bd-article-container"> | ||
|
||
<div class="bd-header-article"> | ||
<div class="header-article-items header-article__inner"> | ||
|
||
<div class="header-article-items__start"> | ||
|
||
<div class="header-article-item"> | ||
|
||
|
||
|
||
<nav aria-label="Breadcrumbs"> | ||
<ul class="bd-breadcrumbs" role="navigation" aria-label="Breadcrumb"> | ||
|
||
<li class="breadcrumb-item breadcrumb-home"> | ||
<a href="../../../index.html" class="nav-link" aria-label="Home"> | ||
<i class="fa-solid fa-home"></i> | ||
</a> | ||
</li> | ||
|
||
<li class="breadcrumb-item"><a href="../../index.html" class="nav-link">Module code</a></li> | ||
|
||
<li class="breadcrumb-item active" aria-current="page">cogs.listeners.on_member_join</li> | ||
</ul> | ||
</nav> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
</div> | ||
</div> | ||
|
||
|
||
|
||
|
||
<div id="searchbox"></div> | ||
<article class="bd-article" role="main"> | ||
|
||
<h1>Source code for cogs.listeners.on_member_join</h1><div class="highlight"><pre> | ||
<span></span><span class="c1">##> Imports</span> | ||
<span class="c1"># > Discord dependencies</span> | ||
<span class="kn">from</span> <span class="nn">discord.ext</span> <span class="kn">import</span> <span class="n">commands</span> | ||
|
||
<div class="viewcode-block" id="On_member_join"> | ||
<a class="viewcode-back" href="../../../cogs.listeners.html#cogs.listeners.on_member_join.On_member_join">[docs]</a> | ||
<span class="k">class</span> <span class="nc">On_member_join</span><span class="p">(</span><span class="n">commands</span><span class="o">.</span><span class="n">Cog</span><span class="p">):</span> | ||
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">bot</span><span class="p">):</span> | ||
<span class="bp">self</span><span class="o">.</span><span class="n">bot</span> <span class="o">=</span> <span class="n">bot</span> | ||
|
||
<div class="viewcode-block" id="On_member_join.on_member_join"> | ||
<a class="viewcode-back" href="../../../cogs.listeners.html#cogs.listeners.on_member_join.On_member_join.on_member_join">[docs]</a> | ||
<span class="nd">@commands</span><span class="o">.</span><span class="n">Cog</span><span class="o">.</span><span class="n">listener</span><span class="p">()</span> | ||
<span class="k">async</span> <span class="k">def</span> <span class="nf">on_member_join</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">member</span><span class="p">)</span> <span class="o">-></span> <span class="kc">None</span><span class="p">:</span> | ||
<span class="w"> </span><span class="sd">""" Sends a private message to the member when they join the server """</span> | ||
|
||
<span class="k">await</span> <span class="n">member</span><span class="o">.</span><span class="n">send</span><span class="p">(</span><span class="s2">"""Welcome to the server! You can use `/help` to get a list of all commands available to you.</span> | ||
<span class="s2">For more information about a specific command, use `/help <command>`.</span> | ||
<span class="s2">Be sure to add your portfolio API read-only keys to your profile using `/portfolio`."""</span><span class="p">)</span></div> | ||
</div> | ||
|
||
|
||
<span class="k">def</span> <span class="nf">setup</span><span class="p">(</span><span class="n">bot</span><span class="p">):</span> | ||
<span class="n">bot</span><span class="o">.</span><span class="n">add_cog</span><span class="p">(</span><span class="n">On_member_join</span><span class="p">(</span><span class="n">bot</span><span class="p">))</span> | ||
</pre></div> | ||
|
||
</article> | ||
|
||
|
||
|
||
<footer class="bd-footer-article"> | ||
|
||
<div class="footer-article-items footer-article__inner"> | ||
|
||
<div class="footer-article-item"><!-- Previous / next buttons --> | ||
<div class="prev-next-area"> | ||
</div></div> | ||
|
||
</div> | ||
|
||
</footer> | ||
|
||
</div> | ||
|
||
|
||
|
||
|
||
</div> | ||
<footer class="bd-footer-content"> | ||
|
||
</footer> | ||
|
||
</main> | ||
</div> | ||
</div> | ||
|
||
<!-- Scripts loaded after <body> so the DOM is not blocked --> | ||
<script src="../../../_static/scripts/bootstrap.js?digest=e353d410970836974a52"></script> | ||
<script src="../../../_static/scripts/pydata-sphinx-theme.js?digest=e353d410970836974a52"></script> | ||
|
||
<footer class="bd-footer"> | ||
<div class="bd-footer__inner bd-page-width"> | ||
|
||
<div class="footer-items__start"> | ||
|
||
<div class="footer-item"> | ||
<p class="copyright"> | ||
|
||
© Copyright 2023, Stephan Akkerman. | ||
<br/> | ||
|
||
</p> | ||
</div> | ||
|
||
<div class="footer-item"> | ||
<p class="sphinx-version"> | ||
Created using <a href="https://www.sphinx-doc.org/">Sphinx</a> 7.2.3. | ||
<br/> | ||
</p> | ||
</div> | ||
|
||
</div> | ||
|
||
|
||
<div class="footer-items__end"> | ||
|
||
<div class="footer-item"><p class="theme-version"> | ||
Built with the <a href="https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html">PyData Sphinx Theme</a> 0.13.3. | ||
</p></div> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
</footer> | ||
</body> | ||
</html> |
Oops, something went wrong.