role = discord.utils.get(ctx.guild.roles, name="role to add name", color=<colour>)
user = ctx.message.author
await user.add_roles(role)
import chromedriver_binary
from selenium import webdriver
from seleniumwire import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
from webdriver_manager.chrome import ChromeDriverManager
chrome_options = Options()
chrome_options.add_argument("--headless")
username = ''
password = ''
ip = ''
port = 1
proxy = f'{username}:{password}@{ip}:{port}'
options = {
'proxy': {
'https': f'https://{proxy}',
}
}
driver = webdriver.Chrome(ChromeDriverManager().install(),seleniumwire_options=options, options=chrome_options)
#уже с прокси делаешь что-то
#заходишь на сайты и тд
import discord
from discord.ext import commands
intents = discord.Intents.default()
intents.members = True
client = commands.Bot(command_prefix='!', intents=intents)
@client.command()
async def ping(ctx):
user = client.get_user(id)
await user.send('message')
client.run('token')