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
<div id="myCarousel" class="carousel slide" data-bs-ride="carousel" data-bs-interval="false"> | |
<!-- Indicators --> | |
<div class="carousel-indicators"> | |
{% for video in project['videos'] %} | |
<button type="button" data-bs-target="#myCarousel" data-bs-slide-to="{{ loop.index0 }}" | |
class="{{'active' if loop.index0 == 0}}" aria-current="true" aria-label="Slide {{ loop.index0 + 1 }}"></button> | |
{% endfor %} | |
{% for photo in project['photos'] %} | |
<button type="button" data-bs-target="#myCarousel" data-bs-slide-to="{{ loop.index0 }}" | |
class="{{'active' if ((loop.index0 == 0) and (not 'videos' in project)) }}" aria-current="true" aria-label="Slide {{ loop.index0 + 1 }}"></button> |
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
<form id="reportEventForm" method="POST" action="{{ url_for('map.main_map_page')}}"> | |
{{ report_event_form.hidden_tag() }} | |
<fieldset> | |
<div class="mb-3"> | |
<label class="col-form-lacbel">Node to report:</label> | |
{% if report_event_form.node_to_report.errors %} | |
{{ report_event_form.node_to_report(class="form-control is-invalid") }} | |
<div class="invalid-feedback"> | |
{% for error in report_event_form.node_to_report.errors %} | |
<span>{{ error }}</span> |
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
class AdvertisementConfirmButton(ui.View): | |
def __init__(self, author, skybies_cost, num_messages): | |
super().__init__(timeout=10) | |
self.reply = None | |
self.author = author | |
self.skybies_cost = skybies_cost | |
self.num_messages = num_messages | |
async def on_timeout(self): | |
if self.reply.reference: |
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
class AdvertisementConfirmButton(ui.View): | |
def __init__(self, author, skybies_cost, num_messages): | |
super().__init__(timeout=10) | |
self.reply = None | |
self.author = author | |
self.skybies_cost = skybies_cost | |
self.num_messages = num_messages | |
async def on_timeout(self): | |
if self.reply.reference: |
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
Ignoring exception in on_message | |
Traceback (most recent call last): | |
File "/app/.heroku/python/lib/python3.10/site-packages/nextcord/client.py", line 445, in _run_event | |
await coro(*args, **kwargs) | |
File "/app/Cogs/SelfPromotion.py", line 154, in message_cost_system | |
confirm_button.reply = await message.reply(view=AdvertisementConfirmButton) | |
File "/app/.heroku/python/lib/python3.10/site-packages/nextcord/message.py", line 1714, in reply | |
return await self.channel.send(content, reference=self, **kwargs) | |
File "/app/.heroku/python/lib/python3.10/site-packages/nextcord/abc.py", line 1402, in send | |
components = view.to_components() |
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
import os | |
from datetime import datetime, timedelta | |
from nextcord import utils, TextChannel, MessageType | |
from dotenv import load_dotenv | |
from nextcord.ext import commands | |
from pymongo import MongoClient | |
load_dotenv() | |
cluster = MongoClient(os.getenv("MongoDbSecretKey")) |
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
import os | |
from datetime import datetime, timedelta | |
from nextcord import utils, TextChannel, MessageType | |
from dotenv import load_dotenv | |
from nextcord.ext import commands | |
from pymongo import MongoClient | |
load_dotenv() | |
cluster = MongoClient(os.getenv("MongoDbSecretKey")) |
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
import asyncio | |
import os | |
import aiohttp | |
from datetime import datetime, timezone, timedelta | |
import nextcord | |
from nextcord import Message, utils | |
from dotenv import load_dotenv | |
from nextcord.ext import commands, tasks | |
from pymongo import MongoClient, ASCENDING |
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
import asyncio | |
import os | |
import aiohttp | |
from datetime import datetime, timezone, timedelta | |
import nextcord | |
from nextcord import Message, utils | |
from dotenv import load_dotenv | |
from nextcord.ext import commands, tasks | |
from pymongo import MongoClient, ASCENDING |
NewerOlder