gmod talker help

hi so i am trying to make a gmod talker thing like you type in chat “hello is anyone there?” and in chat this appears “true” like bolean values, and i have no idea how to do that can some one help me?

i need anwsers and help

UPDATE: heres a pic of my code so far
[lua]Function;(shared);talker
if client then
if player:ChatPrint(“fuck you”)
player.GetByID( 1 ):ChatPrint(“You bad boy!”)
if player:ChatPrint(“i’m not a minge”)
player.GetByID( 1 ):ChatPrint(“You are a minge”)
end
end
end
Function;(shared); minges
if sever then
if player:ChatPrint(“i’m a minge”)
player.GetByID( 1 ):ChatPrint(“You fucking minge!”)
end
end
Function;(shared);good people
if sever then
if player:ChatPrint(“nice building”)
player.GetByID( 1 ):ChatPrint(“Your a good gmoder!”)
end
end
Function;(shared);bad people
if sever then
if player:ChatPrint(“that thing sucks!”)
player.GetByID( 1 ):ChatPrint(“You fucking ass!”)
end
end
Function;(shared); good and bad
if sever than
if player:ChatPrint("")
player.GetByID( 1 ):ChatPrint(“what? idk what you said”)
end
end
// i have no more ideas
[/lua]

This is what you need :
**[Gamemode.PlayerSay

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Gamemode.PlayerSay)**

If you are doing it serverside take a look at
**[Player.PrintMessage

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Player.PrintMessage)**

Rather **[Player.ChatPrint

http://wiki.garrysmod.com/favicon.ico](wiki.garrysmod.com/?title=Player.ChatPrint)** if it’s for a chat bot. :smile: