games = []
for guild in self.client.guilds:
for member in guild.members:
if member.activities == None:
return
else:
if member.activities[0].name in games:
games[member.activities[0].name] += 1
else:
games[member.activities[0].name] = 1
print(member.activities)
print(games)
import keyboard
from time import sleep
while True:
if keyboard.is_pressed('space'):
while keyboard.is_pressed('space'):
sleep (0.01)
keyboard.send('space')
$connection = ssh2_connect('www.example.ru', 22);
ssh2_auth_password($connection, 'username', 'password');
ssh2_scp_send($connection, '/local/filename', '/remote/filename', 0644);
if len(list_dirname) == 0:
print('Ничего не найдено')
$image->setImageProperty('Exif.Image.RatingPercent', 100); //Rating tag used by Windows, value in percent