Skip to content

Instantly share code, notes, and snippets.

View marcuth's full-sized avatar
😜
Os guri

Marcuth marcuth

😜
Os guri
View GitHub Profile
<div id="tool-dragon-critical-calculator" class="tools-card">
<h1>Calcular Críticos dos Elementos</h1>
<div class="text-field-container">
<h3>Selecione os Elementos</h3>
<ul class="elementsList">
<li id="liEarth" class="elements-s">
<label for="inputEarth"><img src="https://cdn.statically.io/img/dc-mapas.com.br/f=webp/assets/img/elements/ic-el-terra.png" alt="Elemento Terra"></label>
<input type="checkbox" name="element" id="inputEarth">
</li>
<li id="liFlames" class="elements-s">
const elements = {
earth: {
name: 'Earth',
critics: ['electric', 'dark'],
weaknesses: ['metalic', 'war'],
null: 'earth'
},
flames: {
name: 'Flames',
critics: ['nature', 'ice'],
from telegram import InlineKeyboardButton, InlineKeyboardMarkup, KeyboardButton, ReplyKeyboardMarkup
from config import *
import telebot
import requests
import threading
import time
bot = telebot.TeleBot(BOT_TOKEN)
@bot.message_handler(commands=["start"])
from telegram import InlineKeyboardButton, InlineKeyboardMarkup, KeyboardButton, ReplyKeyboardMarkup
from config import *
import telebot
import requests
import threading
import time
bot = telebot.TeleBot(BOT_TOKEN)
@bot.message_handler(commands=["start"])
from telegram import InlineKeyboardButton, InlineKeyboardMarkup, KeyboardButton, ReplyKeyboardMarkup
from config import *
import telebot
import requests
import threading
import time
bot = telebot.TeleBot(BOT_TOKEN)
@bot.message_handler(commands=["start"])
import asyncio
from get_endpoint_info.geneal_info.alliance_chests import get_chest_alliance_info
from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from pydantic import BaseModel
from config import USERS_AUTH
from get_endpoint_info import get_info
import functions
import json
import json
from requests_html import AsyncHTMLSession
import datetime
def convert_time(_time_):
_hour_ = _time_.split(",")[1].strip()
_hour_ = _hour_.split(":")
_hour_ = {
"H": int(f"{_hour_[0].strip()}"),
"M": int(f"{_hour_[1].strip()}")
# Importações
import telebot, threading
from telebot.types import BotCommand
# Token do bot
TOKEN = ""
# Instanciando o bot
bot = telebot.TeleBot(TOKEN)
/*
Isso retorna exatatente o mesmo conteúdo do Algorithmia
By Marcuth :) @1Marcuth [14/12/22]
*/
import wiki from "wikipedia" // npm i wikipedia
async function getFromWikipedia(pageName) {
const pageContent = {}
const formaterConfig = [
{
markdown: "*",
tag: {
name: "b",
needClose: true
}
},
{
markdown: "_",