import config
import socket
import pygame as pg
pressed_mouse_button = pg.mouse.get_pressed()
if pressed_mouse_button[2]: # send message
def chat(sock, msg):
“”"
Send a chat message to the server.
Keyword arguments:
sock – the socket over which to send the message
msg – the message to be sent
“”"
sock.send((“PRIVMSG {} :{}\r\n”.format(config.CHAN, msg)).encode(“UTF-8”))
I have been following tutorials etc. what i don’t understand is, where to i put the actual message? also is this script valid? please help ;_;