como fazer um bot spamm no discord com python

import pyautogui
from time import sleep
sleep(5)
f = open("textogrande", 'a')
for word in f:
    pyautogui.typewrite(word)
    pyautogui.press("enter")
Filthy Ferret